Light.changeColor method


This is a test of the Emergency Filtering Network.
santa with transparent background
Cone:


Point:

Note the interaction between the image's actual color and the color of the light. The navy text, in particular, will only show color under a blue light.


What you should see

To save download time, the images show the new colors for Cone and Point sources both.

Original
text and santas - original colors

Color 1
text and santas in color 1

Color 2
text and santas in color 2


Syntax & Settings

For example, the cone light for the left santa has its color changed first with:

santa.filters.light.changeColor(0,0,100,100,1)

In SCRIPT the general form for changeColor is:

object.filters.Light.ChangeColor(lightnumber, r,g,b, fAbsolute)

Object is the ID of the visual object which is filtered.
Lightnumber is the identifying integer for the particular light on the object. Light sources are numbered as they are added.
R, G, B are the new red, green, blue color values, ranging from 0 to 255.
fAbsolute is either 0 or a non-zero integer. If non-zero, the RGB values set the new color. If zero, the RGB values are added to the old color values.


© 1997-2002 Jan Smith   <jegs1@jegsworks.com>