v0.3.0
Pre-release
Pre-release
This change moved a lot of the logic onto the Color object itself. We got rid of
ColorSpace; instead, a color space is now just a color without a value. We
have also introduced the concept of a BaseSpace which is, again, an incomplete
Color object that we will define all of our color methods on. The resulting
inheritance chain would look like so:
BaseSpace <- ColorSpace <-- Color
This fixes the issue where we had to redefine our conversion methods on each color
object as we created it. This also sets the stage for Color method plugins, which
should be coming in the next update.
- added
Color.to() - added
Color.as() - moved the majority of the
ColorSpaceStorelogic to a genericStorageobject - added
ConversionStore - added optional context to
helpers.each() - added ability to iterate over objects to
helpers.each() - added
.prototoCreatable - removed
ColorSpace - fixed mismatched
thiswhen.each()is detached fromhelpers