3D Lingo Dictionary > C-D > colorRange

 

colorRange

Syntax

member(whichCastmember).modelResource(whichModelResource).colorRange.start
member(whichCastmember).modelResource(whichModelResource).colorRange.end

Description

3D #particle model resource properties; indicate the beginning color and ending color of the particles of a particle system.

The start property is the color of the particles when they are created. The end property is the color of particles at the end of their lives. The color of each particle gradually changes from the value of start to the value of end over the course of its life.

The start and end properties have a default value of rgb(255, 255, 255).

Examples

This statement sets the colorRange properties of the model resource named ThermoSystem. The first line sets the start value to rgb(255, 0, 0), and the second line sets the end value to rgb(0, 0, 255). The effect of this statement is that the particles of ThermoSystem are red when they first appear, and gradually change to blue during their lifetimes.

member(8,2).modelResource("ThermoSystem").colorRange.start = rgb(255,0,0)
member(8,2).modelResource("ThermoSystem").colorRange.end = rgb(0,0,255)

See also

emitter, blendRange, sizeRange