A library to work with all kinds of color conversions and color scales.
This library is a translation of chroma.js.
- color constructors
- manipulate the color object and convert into different color spaces
- generate colors and scales
- utils
Add chroma-luau
in your dependencies:
yarn add chroma-luau
Or if you are using npm
:
npm install chroma-luau
Versions of chroma-luau are also pre-built and linked to GitHub releases:
chroma.rbxm
is a Roblox model filechroma.lua
is a single-file version of the library (with Luau type annotations removed)
If you would like to use this library on a Lua environment, where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.
The library uses darklua to process its code.
This project is available under the MIT license. See LICENSE.txt for details.