Radial

Radial

{Object} Radial Radial gradient object type and properties

Constructor

new Radial()

Description:
  • Create a Radial gradient object type and properties
Source:
Properties:
Name Type Description
start Point Start X & Y axis coordinates
startRadius Number Starting radius of linear gradient
end Point End X & Y axis coordinates
endRadius Number Ending radius of linear gradient gradient
stops Array.<Stop> Array of color stops

Methods

end(value)

Description:
  • Set ending point
Source:
Parameters:
Name Type Description
value Point Ending point

end() → {Point}

Description:
  • Set ending point
Source:
Returns:
Ending point
Type
Point

endRadius(value)

Description:
  • Set ending radius
Source:
Parameters:
Name Type Description
value Number Ending radius

endRadius() → {Number}

Description:
  • Set ending radius
Source:
Returns:
Ending radius
Type
Number

start(value)

Description:
  • Set starting point
Source:
Parameters:
Name Type Description
value Point Starting point

start() → {Point}

Description:
  • Set starting point
Source:
Returns:
Starting point
Type
Point

startRadius(value)

Description:
  • Set starting radius
Source:
Parameters:
Name Type Description
value Number Starting radius

startRadius() → {Number}

Description:
  • Set starting radius
Source:
Returns:
Starting radius
Type
Number

stops(value)

Description:
  • Set color stops
Source:
Parameters:
Name Type Description
value Array.<Stop> Color stops

stops() → {Array.<Stop>}

Description:
  • Get color stops
Source:
Returns:
Color stops
Type
Array.<Stop>