pex-color

Color utilities for the pex library

color

color = require('pex-color')

color.copy(c, out)

color.create(r, g, b, a)

color.fromHSL(h, s, l, a)

color.fromHSV(h, s, v, a)

color.fromHex(hex)

color.fromLab(l, a, b)

color.fromRGB(r, g, b, a)

color.fromRGBBytes(bytes)

color.fromXYZ(x, y, z)

color.getHSL(c)

color.getHSV(c)

color.getHex(c)

color.getLab(c)

color.getRGBBytes(c, out)

color.getXYZ(c)

color.lerp(a, b, t)

color.set(color, r, g, b, a)

color.setHSL(c, h, s, l, a)

color.setHSV(c, h, s, v, a)

color.setHex(c, hex)

color.setLab(c, l, a, b)

color.setRGB(c, r, g, b, a)

color.setXYZ(c, x, y, z)