Skip to content

Novis\Image\Color

A colour: red, green and blue from 0 to 255, and alpha from 0.0 (transparent) to 1.0 (opaque).

Members

2 members.

MemberSignature
rgbargba(uint $r, uint $g, uint $b, float $alpha = 1.0): Color
hexhex(string $hex): Color

Properties

  • $color->ruintthe red channel, from 0 to 255
  • $color->guintthe green channel, from 0 to 255
  • $color->buintthe blue channel, from 0 to 255
  • $color->alphafloatthe alpha, from 0.0 (transparent) to 1.0 (opaque)