Skip to content

Color bindings

SDraw edited this page Jun 14, 2023 · 1 revision

Static properties

  • black: get, Color
  • blue: get, Color
  • clear: get, Color
  • gray: get, Color
  • green: get, Color
  • grey: get, Color
  • magenta: get, Color
  • red: get, Color
  • white: get, Color
  • yellow: get, Color

Static methods

  • Color HSVToRGB(float h, float s, float v, bool hdr = true)
  • Color Lerp(Color a, Color b, float t)
  • Color LerpUnclamped(Color a, Color b, float t)
  • float float float RGBToHSV(Color a)

Instance properties

  • r: get/set, float
  • g: get/set, float
  • b: get/set, float
  • a: get/set, float
  • gamma: get, Color
  • grayscale: get, float
  • linear: get, Color
  • maxColorComponent: get, float

Utility functions

  • bool IsColor(object obj): checks if object is type of Color.