/** * Get color in 256. * * @return C256 */ public function to256() { return new C256(RGBtoC256(...HEXtoRGB($this->code()))); }
/** * Get color in 256. * * @return C256 */ public function to256() { return new C256(RGBtoC256(...HSLtoRGB(...$this->hsl()))); }
/** * Get color in 256. * * @return C256 */ public function to256() { return new C256(RGBtoC256(...$this->rgb())); }