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