Shadow

Shadow

{Object} Shadow Shadow of associated object

Constructor

new Shadow(color, blur, offset)

Description:
  • Create a shadow
Source:
Properties:
Name Type Attributes Default Description
color Object <optional>
<Rgb> RGB color value; r, g, b
blur number <optional>
3 Blur strength
offset Point Point offset coordinates
Parameters:
Name Type Description
color Object RGB color value
blur number Shadow blur value
offset Point Shadow offset

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 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
Source:
See:
Parameters:
Name Type Description
value Point Shadow offset

offset() → {Point}

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

x(value)

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

x() → {number}

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

y(value)

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

y() → {number}

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