Color Waveform Parameters
PreviousNext

The Red, Green, and Blue Waveform Parameter dialogs allow you to specify how the color levels vary from the left to the right side of the Spectrum Gradient window. Note that Spectrum Gradient creates colors as mixtures of red, green, and blue primary colors. The level of each primary color is specified as an integer ranging from 0 to 255. If a pixel has a red color level of 0, then the pixel contains no red at all. If a pixel's red color level is 255, then it contains the maximum amount of red that is possible. The number of possible color combinations with this scheme = 2**24, or about 16 million.

When the waveform type is set to Sinusoid, then the following equation describes how the color level varies:

color level = (128 + 127 * sin ( (360*x)/Period + Phase - 90) )*(Gain/100) where the units of x and Period are Windows logical inches and the units of Phase are degrees. The angular argument to the sin() function is also in degrees.

x = 0 at the left side of the Spectrum Gradient window, and increases by 1.0 inch for each 96 screen pixels as the cursor moves from left to right. At 100% screen scaling, 96 pixels = 1.0 logical inch. At 150% screen scaling, 144 pixels = 1.0 logical inch.

So...

x = 0, Period = 4.0 inches, Phase = 0, and Gain = 100 => color level = 1

x = 1.0 inch, Period = 4.0 inches, Phase = 0, and Gain = 100 => color level = 128

x = 2.0 inches, Period = 400, Phase = 0, and Gain = 100 => color level = 255

x = 300, Period = 4.0 inches, Phase = 0, and Gain = 100 => color level = 128

x = 4.0 inches, Period = 4.0 inches, Phase = 0, and Gain = 100 => color level = 1

Currently Waveform types of  Sinusoid, Triangle, Left Saw Tooth, and Right Saw Tooth are supported. The lower right corner of the Spectrum Gradient app displays the red, green, and blue values for the pixel under the mouse. You can use this color level info to see exactly how the Waveform types and parameters control the color levels.