# new Stroke(opts)
Initialization object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
opts |
object | Stroke layer options. |
||
color |
object |
<optional> |
null | A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported. |
width |
number |
<optional> |
Width |
Classes
Methods
# getColor() → {string}
Get the stroke color.
A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported.
# setColor(color)
Set the color.
Parameters:
Name | Type | Description |
---|---|---|
color |
string | A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported. |