Commit Graph

4 Commits

Author SHA1 Message Date
rdb dbe05e079b tinydisplay: Reimplement color blending, supporting more options
Separate blend modes/operands for rgb/alpha are now supported, and min/max blend
modes are supported too.  To avoid code bloat, the operands are now no
longer implemented as separate permutations in the table, but using a
small table and a mask.  I haven't tested performance but it shouldn't
be much worse (and this is the "general" fallback case anyway, which
should prioritize correctness) and the number of functions is significantly reduced.

A bug was fixed regarding sRGB behavior when only the blue channel is
enabled.

M_subtract and M_inv_subtract are still left unimplemented.
2026-01-29 19:22:46 +01:00
rdb 32a9e4d9ed Add support for sRGB framebuffers and blending to tinydisplay renderer. 2014-10-08 11:34:41 +00:00
David Rose e4709607c3 color mask 2009-02-21 19:42:44 +00:00
David Rose 203b7f1a89 additive blending and other exotic blend modes 2008-05-13 02:09:27 +00:00