class Color - guddimon-/boblight-client GitHub Wiki

Documentation of class Color's public methods and their attributes

Methods

Color(red, red=0, green=0, blue=0)

  • Instantiate the object Color.

setColor(red=0, green=0, blue=0)

  • Set the new color.

getRed(), getGreen(), getBlue()

  • Get the value of the red, green, blue value of this color. The result is of type float in the range [0, 1].

Attributes

red, green, blue: Float value for red, green, blue parts of this color. It may be in the range [0, 1].