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