FANDOM



This command will color an existing light within the scene.

Syntax
COLOR LIGHT Light Number, Color Value
COLOR LIGHT Light Number, Red, Green, Blue
Parameters
Light Number

Integer
The light number Red Integer
The red value Green Integer
The green value Blue Integer
The blue value

Returns

This command does not return a value.

Description

You can specify the color as a single colourvalue using the RGB command. Alternatively you can specify the color values individually by providing a red, green and blue component value in the range of -255 to 255. The light number and parameters must be specified using integer values.

Example Code
sync on

autocam off

color backdrop rgb(0,0,0)

load image "ground.jpg",1

make matrix 1,1000,1000,100,100

prepare matrix texture 1,1,1,1

position matrix 1,-500,0,-500

position camera 0,100,0

make object sphere 1,20

position object 1,0,0,500

set ambient light 20

color ambient light rgb(64,64,128)

set normalization off

set point light 0,0,0,500

position light 0,0,100,0

color light 0,512,512,255

set light range 0,1000

while inkey$()<>"x"

sync

endwhile

delete light 1

set normalization on

end
Community content is available under CC-BY-SA unless otherwise noted.