All notable changes to color
will be documented in this file
- Test Enhancements for Contrast Calculations (and mini refactor for contrast class) by @danielebarbaro in #92
- @danielebarbaro made their first contribution in #92
Full Changelog: https://github.com/spatie/color/compare/1.6.2...1.6.3
- Issue #88 Cast return to float instead of string to match Contrast ratio return type by @NiklasBr in #91
- @NiklasBr made their first contribution in #91
Full Changelog: https://github.com/spatie/color/compare/1.6.1...1.6.2
- Fix wrong Validation Error message for hsla strings by @Afrowson in #90
- @Afrowson made their first contribution in #90
Full Changelog: https://github.com/spatie/color/compare/1.6.0...1.6.1
- Ignore more file when packaging releases by @andypost in #83
- Fix typo in README for Hsl::fromString() in Cast the color to a string. by @agnonym in #84
- Added named colors by @vanodevium in #87
- @andypost made their first contribution in #83
- @agnonym made their first contribution in #84
- @vanodevium made their first contribution in #87
Full Changelog: https://github.com/spatie/color/compare/1.5.3...1.6.0
- Refactor tests to pest by @AyoobMH in #80
- Add PHP 8.2 Support by @patinthehat in #81
- Fix rgb to cmyk division by zero bug by @stefanriehl in #82
- @AyoobMH made their first contribution in #80
- @patinthehat made their first contribution in #81
- @stefanriehl made their first contribution in #82
Full Changelog: https://github.com/spatie/color/compare/1.5.2...1.5.3
- Add RegEx fix to Validate.php too... by @jcogs-design in #73
- Fix typo in Distance::CIE76. by @Angel5a in #76
Full Changelog: https://github.com/spatie/color/compare/1.5.1...1.5.2
- Fix rgba opacity by @AstroCorp in #67
- @AstroCorp made their first contribution in #67
Full Changelog: https://github.com/spatie/color/compare/1.5.0...1.5.1
- Added support for PHP 8
- Added support for CMYK & HSB
- Added support for HEX alpha channel
- Added support for 3-digit HEX values
- Fix HEX/HSL conversion bug
- Added CIELab and XYZ color formats and
Distance
API - Added
Contrast
API
- Fixed division by zero error on pure white/black convertions (#42)
- Added support for PHP 8
- Fix transform RGB value to HSL : division by zero (#38)
- HSL to RGB fixes
- Added HSL & HSLA support
- Fixed validation when a color contained redundant characters at the beginning or end of the string
- All color formats now implement a
Color
interface - Added a
Factory
class with afromString
static method to guess a format rgb
andrgba
values can now contain spaces (e.g.rgb(255, 255, 255)
)
rgbChannelToHexChannel
now also accepts single single-digit hex values
- Bugfix (breaking!): Alpha channel values are now a float between 0 and 1
- First release