Package Exports
- errisy-color
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (errisy-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Errisy-Color
RGBA to HSVA and HSVA to RGBA color conversion.
RGBA HSVA Colors
parse color and perform color conversion:
import * as {Color} from 'errisy-color';
let c: Color = Color.parse('Cyan'); //you can also parse formats such as rgba(24, 30, 80, 24) or #0ff or #0acbf2
let hsv = c.toHSV(); //convert to HSV
hsv.S = 100; //set 100% saturation.
let c2 = hsv.toColor(); //convert back to RGBA