ShadowCollection

ShadowCollection

{Object} ShadowCollection Shadow of associated object

Constructor

new ShadowCollection()

Description:
  • Create a shadow collection
Source:
Properties:
Name Type Attributes Default Description
color Object <optional>
<Rgb> Color model & value
blur number Blur strength
offset Point Point offset coordinates

Methods

blur(blur)

Description:
  • Set blur value
Source:
Parameters:
Name Type Description
blur number Blur value

blur() → {number}

Description:
  • Get blur value
Source:
Returns:
Blur value
Type
number

color(value)

Description:
  • Set color value
Source:
Parameters:
Name Type Description
value string RGB color value

color() → {string}

Description:
  • Get color value
Source:
Returns:
RGB color value
Type
string

offset(value)

Description:
  • Set offset
Source:
Parameters:
Name Type Description
value Point Shadow offset

offset() → {Point}

Description:
  • Get offset
Source:
Returns:
Shadow offset
Type
Point

x(value)

Description:
  • Set x-axis offset value
Source:
Parameters:
Name Type Description
value number X coordinate value

x() → {number}

Description:
  • Get x-axis offset value
Source:
Returns:
X coordinate value
Type
number

y(value)

Description:
  • Set the y-axis offset value
Source:
Parameters:
Name Type Description
value number Y coordinate value

y() → {number}

Description:
  • Get y-axis offset value
Source:
Returns:
Y coordinate value
Type
number