ozdemirburak/iris
PHP color library for manipulation and conversion between Hex, Hexa, RGB, RGBA, HSL, HSLA, HSV, CMYK, and OKLCH. Requires PHP 8.1+ and supports named colors, alpha channels, and conversion methods.
gradient() method to generate color scales between two or more colors (#51)
$colorA->gradient($colorB, $steps)$colorA->gradient([$colorB, $colorC], $steps)toOklch() method on all color classesOklch::fromRgb() static factory method for RGB to OKLCH conversionclone() method for color objectsalphaRaw() protected method for internal alpha precision handlingHow can I help you explore Laravel packages today?