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.
rhinoscriptsyntax.RenderColor (item, color=None)
rhinoscript.document.RenderColor (item, color=None)
item |
Required. Number. The item you wish to either query or change.
|
||||
color |
Optional. The new color value. If omitted, the current item color is returned. |
Color |
If color is not specified, the current item color if successful. |
Color |
If color is specified, the previous item color if successful. |
import rhinoscriptsyntax as rs
render_background_color = 1
rs.RenderColor( render_background_color, (0,0,255) )