Skip to content

v0.3.0

Pre-release
Pre-release

Choose a tag to compare

@webdesserts webdesserts released this 28 Dec 06:14
· 27 commits to master since this 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 ColorSpaceStore logic to a generic Storage object
  • added ConversionStore
  • added optional context to helpers.each()
  • added ability to iterate over objects to helpers.each()
  • added .proto to Creatable
  • removed ColorSpace
  • fixed mismatched this when .each() is detached from helpers