In addition to linear gradients, we can also have radial gradients.
A radial gradient introduced via
is a "smooth" colour transition, from a circle of radius r1
with centre located at (x1, y1)
to a circle
of radius r2
with centre located at (x2, y2)
. Just like for the
linear gradient, colour transitions are specified via the
addColorStop()
method.
[The following table has been adapted from Wikipedia.]
|
|
|
Keep your personal notes here. These notes are stored by your browser on your own computer, and will be available from any page on this site. You can choose to use html syntax for formatting.