1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

LibGfx: Nudge points away from the start point in radial gradients

Avoids a division by zero, and an incorrect pixel in some repeating
radial gradient cases.

(Ref tests updated)
This commit is contained in:
MacDue 2023-08-22 22:29:43 +01:00 committed by Andreas Kling
parent df58fa8653
commit a98201f889
4 changed files with 3 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 KiB

After

Width:  |  Height:  |  Size: 861 KiB

Before After
Before After

View file

@ -129,7 +129,6 @@
<rect x="0" y="0" width="400" height="300" fill="url(#reflectTest6)"></rect>
</svg>
<!-- spreadMethod=repeat -->
<!-- spreadMethod=repeat -->
<svg width="400" height="300" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<!-- Start circle inside end circle -->