+ 1

Angle measurement actually starts from a vertical 270deg?

I think the angle measurement described here (as well as w3schools) is confusing/wrong. To determine the angle parameter you should measure starting from a vertical vector pointing down at 270deg counter-clockwise to the gradient angle you want. See https://www.w3.org/TR/SVG/pservers.html#LinearGradients. for a good diagram.

31st Jul 2016, 1:09 AM
Troy Scott
Troy Scott - avatar
1 Odpowiedź
0
The general explanation is a little bit confusing but the examples are correct - see my code example https://code.sololearn.com/Wt3RL9A6r5v2
4th Nov 2016, 8:34 AM
Mojmír Volf
Mojmír Volf - avatar