mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
color.contrast's fix search now accepts a candidate only when it meets the level both as measured and with the color, the background, the art below each group or layer, the opacities, and the pixel and alpha each level gives rounded to 8 bits per channel. The renderer rounds the paint's color and alpha that way, so a fix that meets 4.5:1 only before rounding (a gray of about 118.7/255 on white, which paints as #777777 at 4.48:1) is no longer offered. The reported ratio and its pass results are unchanged. The per-level drawing of the backdrop moves into Pass::draw, which both the measured ratio and the 8-bit check use.