jfairbank / chroma

Ruby gem for color manipulation and palette generation
ISC License
232 stars 29 forks source link

Color mode serialize methods should return same color with different format #8

Closed jfairbank closed 9 years ago

jfairbank commented 9 years ago

For example, to_rgb shouldn't return the actual ColorModes::Rgb instance. It should return a new Color with a format of :rgb (or the same instance if the format is already :rgb).

This will require the current implementations to be private helpers for assisting the string serializers (i.e. to_rgb_s).

jfairbank commented 9 years ago

Never mind. Not in favor of this idea.