Constructor
new Fill(coloropt, typeopt, gradient)
- Description:
- Source:
Properties:
Name |
Type |
Attributes |
Default |
Description |
color |
Object
|
<optional>
|
<Rgb>
|
Color model & value |
type |
string
|
<optional>
|
'solid'
|
Fill type; solid | linear | radial | conic | pattern |
gradient |
Object
|
|
|
Gradient object; Linear | Radial | Conic |
pattern |
Pattern
|
|
|
Pattern fill object |
Parameters:
Name |
Type |
Attributes |
Default |
Description |
color |
Object
|
<optional>
|
<Rgb>
|
Color model & value |
type |
string
|
<optional>
|
'solid'
|
Fill type |
gradient |
Object
|
|
|
Gradient object |
Methods
color(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
Object
|
Color model; Rgb |
color() → {Object}
- Description:
- Source:
Returns:
Color model; Rgb
-
Type
-
Object
gradient(value)
- Description:
- Set gradient gradient properties
- Source:
Parameters:
Name |
Type |
Description |
value |
Object
|
Gradient object & properties |
gradient() → {Object}
- Description:
- Get gradient gradient properties
- Source:
Returns:
Gradient object & properties
-
Type
-
Object
pattern(value)
- Description:
- Sets pattern property value
- Source:
Parameters:
Name |
Type |
Description |
value |
string
|
Path of image to pattern |
pattern() → {Pattern}
- Description:
- Gets pattern property value
- Source:
Returns:
Pattern fill object
-
Type
-
Pattern
repetition(value)
- Description:
- Sets repetition property value
- Source:
Parameters:
Name |
Type |
Description |
value |
string
|
Repetition property value |
repetition() → {string}
- Description:
- Gets repetition property value
- Source:
Returns:
Repetition property value
-
Type
-
string
type(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
string
|
Fill type value |
type() → {string}
- Description:
- Source:
Returns:
Fill type value
-
Type
-
string