Constructor
new Shadow(color, blur, offset)
- Description:
- 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:
- Source:
Parameters:
Name |
Type |
Description |
blur |
number
|
Blur value |
blur() → {number}
- Description:
- Source:
Returns:
Blur value
-
Type
-
number
color(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
Object
|
Color model; Rgb, Hsl, Hwb |
color() → {Object}
- Description:
- Source:
Returns:
Color model; Rgb, Hsl, Hwb
-
Type
-
Object
offset(value)
- Description:
- Source:
- See:
-
Parameters:
Name |
Type |
Description |
value |
Point
|
Shadow offset |
offset() → {Point}
- Description:
- Source:
- See:
-
Returns:
Shadow offset
-
Type
-
Point
x(value)
- Description:
- Source:
- See:
-
Parameters:
Name |
Type |
Description |
value |
number
|
X coordinate value |
x() → {number}
- Description:
- 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:
- Source:
- See:
-
Returns:
Y coordinate value
-
Type
-
number