raw >> 24) & 0xFF; } public function getAlpha(): float { return ((float)$this->getAlphaRaw() / 0xFF); } public function toString(): IString { return new AString(sprintf( 'rgba(%d,%d,%d,%F)', $this->getRed(), $this->getGreen(), $this->getBlue(), round($this->getAlpha(), 3) )); } }