Closed AriaMinaei closed 1 year ago
Did some work on this
const boxObjectConfig = { x: types.number(200), y: types.number(200), background: types.color('#FF0000') }
Did some work on this
Awesome! But the API seems to be RGB only? There are many types of color spaces & ways to shift colors....
https://github.com/WICG/color-api
https://www.quora.com/What-are-the-differences-between-RGB-HSV-and-CIE-Lab
I found a new color lib that is much faster & smaller than tinycolor2: https://github.com/omgovich/colord
Not sure if it should be included, or theatre have just 1 color format (hex?) then document how users can use an external library to translate color spaces or format?
A color prop has been added in 0.5! I won't close this issue yet because people may have more to say about the color prop.
Let's close as resolved :)
Because everyone is asking for it :)