stop()
Produces an SVG "stop" element for
gradients.
Syntax
stop(
offset STRING,
color STRING,
opacity STRING )
RETURNS om.DomNode
- offset defines the offset SVG attribute.
- color defines the stop-color SVG attribute.
- opacity defines the stop-opacity SVG attribte.
Usage
This function creates a "stop" SVG DOM element from the parameters.
An SVG "stop" element defines the ramp of colors to use on a gradient in a
"linearGradient" or "radialGradient" element.
For a usage example, see linearGradient().