Vizard 8 » Command Index » Vizard modules » viz » <viz>.clearcolor
8.1

<viz>.clearcolor

This command sets the background clear color

<viz>.clearcolor(  
red # red amount as 0.0 - 1.0
green # green amount as 0.0 - 1.0
blue # blue amount as 0.0 - 1.0
)  
red
Specifies the amount of red to combine into the clear color (0.0 - 1.0)
green
Specifies the amount of green to combine into the clear color (0.0 - 1.0)
blue
Specifies the amount of blue to combine into the clear color (0.0 - 1.0)

Remarks

This command sets the background color.

Return Value

None

Example

# Clear screen to bright red
viz.clearcolor(1, 0, 0)