Hex8Color

Chameleon\Colors\Hex8Color

Class Hex8Color

Represents a color in the RGB system with alpha channel, but constructed via a hexstring (#rrggbbaa).

  • Class name: Hex8Color
  • Namespace: Chameleon\Colors
  • Fully qualified class name: Chameleon\Colors\Hex8Color
  • Extends: Chameleon\Colors\Hex6Color

Methods

__construct()

void Hex6Color::__construct(string $hexString)

Class constructor


fromRGBA()

void Hex6Color::fromRGBA(\Chameleon\Colors\RGBAColor $rgba)

{@inheritdoc}


__toString()

string Hex6Color::__toString()

Get string representation of this color

Format: #rrggbb * Defined by Chameleon\Colors\Hex6Color

Arguments

None.


getHex()

string Hex6Color::getHex()

Get hexadecimal value for this color Format: #rrggbb


setHex()

void Hex6Color::setHex(string $hexString)

Set hexadecimal value for this color


getAlpha()

integer Hex8Color::getAlpha()

Get RGB alpha channel value

Arguments

None.


setAlpha()

Hex8Color Hex8Color::setAlpha(integer $alpha)

Set RGB alpha channel value

Arguments

  • $alpha integer - <p>RGB alpha channel value [0x00, 0x7F]</p>

getRGBA()

void Hex8Color::getRGBA()

{@inheritdoc}

Arguments

None.