Colour
Properties
- a (
number): Alpha, from 0 (transparent) to 1 (opaque)
- b (
number): Blue, from 0 to 1
- g (
number): Green, from 0 to 1
- r (
number): Red, from 0 to 1
Functions
- HexCode(): Get as a hex string
- HexValue(): Get as a hex number
- SetColour(): Set to a named colour, e.g. colour:SetColour(Colours.Red)
- SetHexCode(): Set from a hex string such as "#FF8800"
- SetHexValue(): Set from a hex number such as 0xFF8800FF
- new(): Colour.new(r, g, b, a) with values from 0 to 1, Colour.new(Colours.Red), or Colour.new() for opaque black