Usage
Gradient
But actually, not quite gradient
; ;// Result: rgb(234,204,72)
percent
- Required, numeric*options
- Optional, object
Conversions
Hex to RGB
; ;// Result: array of RGB values - [153, 68, 255] ;// Result: array of RGB Percent values - [60, 26.67, 100] ;// Result: rgb(153,68,255)
hexadecimal
- Required, string / number. Six-digit (9000f0) or three-digit (94f) Hex triplet. It can begins from hash char (#), or notpercent
- Optional, boolean,False
by defaultcss
- Optional, boolean,False
by default
Hex to HSL
; // Result: array of HSL values - [199.92, 100, 47.25] // Result: hsl(199.92,100%,47.25%)
hexadecimal
- Required, string / number. Six-digit (9000f0) or three-digit (94f) Hex triplet. It can begins from hash char (#), or not.css
- Optional, boolean,False
by default
RGB to HSL
; ;// Result: array of HSL values - [267.27, 100, 63.33] ;// Result: hsl(267.27,100%,63.33%)
rgb
- Required, array. Array of RGB values (0 - 255 range)css
- Optional, boolean,False
by default