mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 10:08:16 +02:00
The old radial gradient tests were actually drawing the same gradients with different operators (OVER/SOURCE) and operations (paint/mask). It is possible to refactor them to share the gradient construction code. This makes it easy to change the gradient shape in all of them to test more interesting combinations. Instead of testing 16 generic positions we are now testing just 7 cases, which correspond to every possible combination of the relative size and position of the two circles defining the gradient. In particular we are now testing a constant radius gradient and gradients with tangent circles.
399 KiB
840x480px
399 KiB
840x480px