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).
For example,
to_rgb
shouldn't return the actualColorModes::Rgb
instance. It should return a newColor
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
).