new Color(str)
Parameters:
Name | Type | Description |
---|---|---|
str |
The color like red or rgb(255, 0, 0) or #ff0000 or rgb(100%, 0%, 0%) |
- Source:
Methods
-
toHex()
-
Get the color as #ff0000
- Source:
-
toRGB()
-
Get the color as rgb(255,0,0)
- Source: