Methods
# hexToRgb(hex) → {Object}
Convert hex color to RGB
Parameters:
Name | Type | Description |
---|---|---|
hex |
string
|
Hex color string |
RGB object
Object
# resize(width, height)
Resize canvas
Parameters:
Name | Type | Description |
---|---|---|
width |
number
|
New width |
height |
number
|
New height |
# updateColors(colors)
Update particle colors
Parameters:
Name | Type | Description |
---|---|---|
colors |
Array
|
Array of RGB colors |