OMC::Colour Class Reference

Detailed Description

A generic colour object that can be used as a colour argument for some internal methiods.

Create a Colour Object

from ToonBoom import harmony #Import the Harmony Module
colour_object = harmony.Colour( 255, 0, 0, 255 ) #RED!
colour_object = harmony.fromHSL( 180, 100, 100, 100 ) #CYAN!

Public Member Functions

 Colour (int r=255, int g=255, int b=255, int a=255)
 

Static Public Member Functions

static OMC::Obj fromHSL (double h, double s, double l, double a)
 

Public Attributes

int r
 Get and set the red value of the colour 0-255.
 
int g
 Get and set the green value of the colour 0-255.
 
int a
 Get and set the alpha value of the colour 0-255.
 
float h
 Get and set the hue value of the colour 0-360.0.
 
float l
 Get and set the lightness value of the colour 0-100.0.
 
float s
 Get and set the saturation value of the colour 0-100.0.
 
QString hex
 Get and set the hex value of the node in form #FFFFFF.
 
Inheritance diagram for OMC::Colour:
Collaboration diagram for OMC::Colour: