Stop

Stop

{Object} Stop Color stop properties for associated array(s)

Constructor

new Stop()

Description:
  • Create a color stop
Source:
Properties:
Name Type Attributes Default Description
color string <optional>
<Rgb> Color model & value
offset number Representation of the color stop position; 0 = start, & 1 = end

Methods

color(value)

Description:
  • Set color value
Source:
Parameters:
Name Type Description
value Object Color model; Rgb, Hsl, Hwb

color() → {Object}

Description:
  • Get color value
Source:
Returns:
Color model; Rgb, Hsl, Hwb
Type
Object

offset(value)

Description:
  • Set offset value
Source:
Parameters:
Name Type Description
value number Offset value

offset() → {number}

Description:
  • Get offset value
Source:
Returns:
Offset value
Type
number