All notable changes to color
will be documented in this file
- 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