Releases: Blupo/Color
Releases · Blupo/Color
v0.2.2
v0.2.1
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
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 ofColor.from("Color3", ...)
- e.g.
Color:toColor3()
instead ofColor:to("Color3")
- e.g.
- 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
- You can access the modules using
- Updated the allowed interpolations for
Color.mix
Color.isAColor
should work for Colors from different versions of the libraryColor.components
now allows you to obtain unclipped componentsColor.luminance
compensates for the error from the equation provided in WCAG 2Gradient.toColorSequence
was renamed toGradient.colorSequence
Removed
lRGB
interpolation has been removed, since it can be done inXYZ
v0.1.0
Added
- Initial release