mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-29 11:56:20 +00:00
Skia does not have built-in support for gradient transition hints. So instead of adding custom gradient painting, now we do the same thing as other engines and preprocess color stops by replacing transition hints with a bunch of points lying between adjacent color stops and calculated using non-linear formula from the spec. As a result we get visually close enough rendering we would get by applying spec-formula individually to each point of a gradient.
25 KiB
25 KiB