Closed oy-satana closed 2 years ago
Example $rgb = new \Spatie\Color\Rgb(0, 0, 0); \Spatie\Color\CIELab::fromString((string) $rgb->toCIELab());
$rgb = new \Spatie\Color\Rgb(0, 0, 0); \Spatie\Color\CIELab::fromString((string) $rgb->toCIELab());
Input values are not always floats and the validator will throw exception
CIELab color string CIELab(0,0,0) is malformed. A CIELab color contains 3 comma separated values, wrapped in CIELab(), e.g. CIELab(62.91,5.34,-57.73)
CIELab(0,0,0)
CIELab()
CIELab(62.91,5.34,-57.73)
Example
$rgb = new \Spatie\Color\Rgb(0, 0, 0); \Spatie\Color\CIELab::fromString((string) $rgb->toCIELab());
Input values are not always floats and the validator will throw exception