Open grv87 opened 9 years ago
For different reasons, I am going to be releasing one more Color 1.x release and then I hope to get back to color-2 in the new year. When I move that direction, I am probably moving toward making it support Ruby 2 only especially for new parameters so as to support keyword arguments.
This has been partially resolved by allowing css_rgba
to accept an optional alpha parameter (defaulting to 1) in the just-release 1.8.
At this moment all the colors have fixed alpha channel. This makes the gem useless for some purposes (i.e. CSS). What is a reason to have
css_rgba
if it anyway substitutes 1 for alpha?I started to add alpha channels to
RGB
and other classes, but there is one problem, so I want to ask first. Is it OK if initialize functions will change its parameters? For example, forRGB
:Code depending on
radix
parameter will have to be updated then. Considering that color-2 is in development, I think that it's OK.Another approach is to create separate classes
RGBA
and so on. Since alpha channel can be applied to each color model, it is questionable way.What do you think or plan?