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