Skip to content

Releases: Blupo/Color

v0.2.2

06 Apr 16:25
65a754e
Compare
Choose a tag to compare

Changed

  • Replaced the Raw hue adjustment option with Specified to match spec, however Raw will still work

v0.2.1

06 Jan 18:24
0a424c4
Compare
Choose a tag to compare

Changed

  • The Gradient.new constructor now creates a copy of the input table instead of using the input table itself
  • Gradient.Keypoints is now correctly frozen, where previously it was possible to modify the individual keypoints but not the keypoint list itself

v0.2.0

01 Dec 17:00
afd3a9b
Compare
Choose a tag to compare

Added

  • Added links in the documentation for further reading on various color types
  • Added alternative from/to functions for the various color types
    • e.g. Color.fromColor3(...) instead of Color.from("Color3", ...)
    • e.g. Color:toColor3() instead of Color:to("Color3")
  • Added Color.gray as a shortcut for creating achromatic colors
  • Added Color.harmonies for generating color harmonies
  • Added Color.deltaE for calculating color differences
  • Added Color.named for referencing CSS colors
  • Added the xyY color type

Changed

  • Refined code to reduce type-check warnings
  • Documentation now reflects that the Hue component for some color types can be NaN
  • Static functions in the documentation now have a badge
  • Read-only properties in the documentation now have a badge
  • The Color and Gradient modules of the library are now split apart
    • You can access the modules using [Module].Color and [Module].Gradient
  • Updated the allowed interpolations for Color.mix
  • Color.isAColor should work for Colors from different versions of the library
  • Color.components now allows you to obtain unclipped components
  • Color.luminance compensates for the error from the equation provided in WCAG 2
  • Gradient.toColorSequence was renamed to Gradient.colorSequence

Removed

  • lRGB interpolation has been removed, since it can be done in XYZ

v0.1.0

09 Nov 20:27
418ae07
Compare
Choose a tag to compare

Added

  • Initial release