The colour implementation is a bit naive, especially the blending which ignores ...

@lhp@mastodon.social

The colour implementation is a bit naive, especially the blending which ignores the concept of optical vs electrical vs perceptual brightness entirely and instead just linearly blends the raw RGBA values (which are f64 at that point).

It's also not very efficient yet.

But it works! Radial gradients, patterns and solid-colours work. Linear gradients next, then divided fill (dividing a rectangle into two triangles and filling each from a separate source, needed for bezel corners). Then lines.