Color Class

From Derivative
Jump to: navigation, search

The color class holds a single 4 component color (R, G, B, A).

v = tdu.Color() # starts as (0, 0, 0, 1)
v2 = tdu.Color(0, 0, 1, 1)
values = [0, 1, 0, 1]
v3 = tdu.Color(values)


Members

rfloat :

Gets or sets the red component of the color.

gfloat :

Gets or sets the green component of the color.

bfloat :

Gets or sets the blue component of the color.

afloat :

Gets or sets the alpha component of the color.

Methods

copy()Color:

Returns a new color that is a copy of the color.

TouchDesigner Build: