Open akshaysmurthy opened 5 years ago
I know chroma has a to_rgb method, but it's actually a port of tinyColor's toRgbString.
to_rgb
toRgbString
I am interested in adding a method to this lib which will output a hash eg., {r: 255, g: 255, b: 255}.
{r: 255, g: 255, b: 255}
This can be very useful to do some arithmetic on the r, g and b values individually.
r
g
b
Is this something that makes sense to be added to this lib?
I just figured that Chroma::Color can return a Chroma::ColorModes::Rgb from which one could get an array. Feel free to close this issue if it doesn't make sense.
Chroma::Color
Chroma::ColorModes::Rgb
I know chroma has a
to_rgb
method, but it's actually a port of tinyColor'stoRgbString
.I am interested in adding a method to this lib which will output a hash eg.,
{r: 255, g: 255, b: 255}
.This can be very useful to do some arithmetic on the
r
,g
andb
values individually.Is this something that makes sense to be added to this lib?