RenderColor

Returns or sets the render ambient light or background color. Render colors are represented as RGB colors. An RGB color specifies the relative intensity of red, green, and blue to cause a specific color to be displayed. See Rhino's DocumentProperties command (Rhino Render window) for details.

Syntax

rhinoscriptsyntax.RenderColor (item, color=None)

rhinoscript.document.RenderColor (item, color=None)

Parameters

item

Required. Number. The item you wish to either query or change.

0

Ambient light color.

1

Background color.

color

Optional. The new color value. If omitted, the current item color is returned.

Returns

Color

If color is not specified, the current item color if successful.

Color

If color is specified, the previous item color if successful.

Example

import rhinoscriptsyntax as rs

render_background_color = 1

rs.RenderColor( render_background_color, (0,0,255) )

Also See

RenderAntialias

RenderResolution

RenderSettings