Methods
# generate(baseColor, harmonyType) → {Array}
Generate color palette based on harmony rules
Parameters:
Name | Type | Description |
---|---|---|
baseColor |
string
|
Base color in hex |
harmonyType |
string
|
Harmony type |
Color palette
Array
# hexToHsl(hex) → {Array}
Convert hex to HSL
Parameters:
Name | Type | Description |
---|---|---|
hex |
string
|
Hex color |
HSL values
Array
# hslToHex(hsl) → {string}
Convert HSL to hex
Parameters:
Name | Type | Description |
---|---|---|
hsl |
Array
|
HSL values |
Hex color
string