Constructor
new Stroke(color, type, segments, alpha, width)
- Description:
- Source:
Properties:
Name |
Type |
Attributes |
Default |
Description |
color |
Object
|
<optional>
|
<Rgb>
|
Color model & value |
type |
string
|
<optional>
|
'solid'
|
Stroke type; 'solid' || 'dashed' |
segments |
Array.<number>
|
<optional>
|
[5, 5]
|
Dashed line segment distance(s) |
width |
number
|
<optional>
|
2
|
Thickness of stroke |
shadow |
Shadow
|
|
|
Shadow properties |
Parameters:
Name |
Type |
Description |
color |
Object
|
RGB color value |
type |
string
|
Stroke type |
segments |
Array.<number>
|
Dashed line segment distance(s) |
alpha |
number
|
Alpha value; number/decimal |
width |
number
|
Thickness of stroke |
Methods
color(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
Rgb
|
Color model |
color() → {Rgb}
- Description:
- Source:
Returns:
Color model
-
Type
-
Rgb
segments(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
Array.<number>
|
Dashed line segment distance(s) |
segments() → {Array.<number>}
- Description:
- Source:
Returns:
Dashed line segment distance(s)
-
Type
-
Array.<number>
type(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
string
|
Stroke type: 'solid' || 'dashed' |
type() → {string}
- Description:
- Source:
Returns:
Stroke type: 'solid' || 'dashed'
-
Type
-
string
width(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
number
|
Thickness of stroke |
width() → {number}
- Description:
- Source:
Returns:
Thickness of stroke
-
Type
-
number