stop()

Produces an SVG "stop" element for gradients.

Syntax

stop(
   offset STRING,
   color STRING,
   opacity STRING )
  RETURNS om.DomNode
  1. offset defines the offset SVG attribute.
  2. color defines the stop-color SVG attribute.
  3. 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().