/** * Returns the currect color converted to grayscale. * * @return \Jyxo\Color */ public function toGrayScale() : self { $gray = new self(); $gray->setLuminance($this->getLuminance()); return $gray; }