Constructor
new (hsl)
Parameters:
| Name | Type | Description |
|---|---|---|
hsl |
Object | an object of hue, saturation, and lightness values (0.0 to 1.0) |
- Source:
Example
new Color({
h: 0.2,
s: 0.5,
l: 1
})
| Name | Type | Description |
|---|---|---|
hsl |
Object | an object of hue, saturation, and lightness values (0.0 to 1.0) |
new Color({
h: 0.2,
s: 0.5,
l: 1
})