Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
RGBA / HSLA
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
HSLA.js
Makefile
RGBA.js
Readme.md
component.json
index.js
package.json

Readme.md

color

RGBA / HSLA color manipulation

Installation

$ component install component/color

API

.rgba(r, g, b, a)

Return an RGBA object.

.hsla(h, s, l, a)

Return an HSLA object.

.RGBA(r, g, b, a)

The RGBA constructor.

.HSLA(h, s, l, a)

The HSLA constructor.

RGBA#toRGBA()

Returns itself.

HSLA#toRGBA()

Return the RGBA representation.

RGBA#toHSLA()

Return the HSLA representation.

HSLA#toHSLA()

Returns itself.

RGBA#toString()

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

HSLA#toString()

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

License

MIT

Something went wrong with that request. Please try again.