next | previous | forward | backward | up | top | index | toc | Macaulay2 website
VectorGraphics :: linearGradient

linearGradient -- An SVG gradient

Description

This corresponds to the linearGradient SVG gradient. The argument is a list of pairs of offsets and styles. Optional arguments (e.g., "x1", "y1", "x2", "y2") are used to determine the orientation of the gradient.

i1 : Ellipse{(60,60),40,30, "fill"=>linearGradient{("0%","stop-color:red"),("100%","stop-color:yellow")}}

o1 = Ellipse{cache => CacheTable{}              }
             Center => | 60 |
                       | 60 |
                       |  0 |
                       |  1 |
             fill => url(#Graphics_1622160074_1)
             RadiusX => 40
             RadiusY => 30

o1 : Ellipse

For the programmer

The object linearGradient is a function closure.