color-component

RGBA / HSLA color manipulation

color

RGBA / HSLA color manipulation

$ component install component/color

Return an RGBA object.

Return an HSLA object.

The RGBA constructor.

The HSLA constructor.

Returns itself.

Return the RGBA representation.

Return the HSLA representation.

Returns itself.

Return the string representation, for example "#f00", or "rgba(255,0,0,.5)".

Return the string representation, for example "hsla(0,100,50,1)".

License

MIT