StrokeCollection

StrokeCollection

{Object} StrokeCollection Stroke properties of associated object

Constructor

new StrokeCollection()

Description:
  • Create a stroke collection
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)
alpha number <optional>
1 Alpha (transparency); number/decimal
width number <optional>
2 Thickness of stroke
shadow Shadow Shadow properties

Methods

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

master(value)

Description:
  • Set master object
Source:
See:
Parameters:
Name Type Description
value clObject Canvas Lab object

master() → {clObject}

Description:
  • Get master object
Source:
See:
Returns:
Master Canvas Lab object
Type
clObject

segments(value)

Description:
  • Set segment value
Source:
Parameters:
Name Type Description
value Array Dashed line segment distance(s)

segments() → {Array}

Description:
  • Get segment value
Source:
Returns:
Dashed line segment distance(s)
Type
Array

type(value)

Description:
  • Set type
Source:
Parameters:
Name Type Description
value number Type: (0) Solid or (1) Dashed

type() → {number}

Description:
  • Get type
Source:
Returns:
Type: (0) Solid or (1) Dashed
Type
number

width(value)

Description:
  • Set width value
Source:
Parameters:
Name Type Description
value number Thickness of stroke

width() → {number}

Description:
  • Get width value
Source:
Returns:
Thickness of stroke
Type
number