Gradient : TextureMap

Constructor

gradient ...

Properties

<Gradient>.color1                Color       default: (color 0 0 0) -- animatable, alias: Color_1

The gradient interpolates between 3 colors. This is the first color.

<Gradient>.map1                  TextureMap  default: undefined  -- alias: Map_1

You can interpolate between 3 maps instead of colors. This is the first map.

<Gradient>.map1Enabled           Boolean     default: true       -- alias: Map_1_Enable

When on, the associated map is enabled.

<Gradient>.color2                Color       default: (color 127.5 127.5 127.5) -- animatable, alias: Color_2

The gradient interpolates between 3 colors. This is the second color.

<Gradient>.map2                  TextureMap  default: undefined  -- alias: Map_2

You can interpolate between 3 maps instead of colors. This is the second map.

<Gradient>.map2Enabled           Boolean     default: true       -- alias: Map_2_Enable

When on, the associated map is enabled.

<Gradient>.color3                Color       default: (color 255 255 255) -- animatable, alias: Color_3

The gradient interpolates between 3 colors. This is the third color.

<Gradient>.map3                  TextureMap  default: undefined  -- alias: Map_3

You can interpolate between 3 maps instead of colors. This is the third map.

<Gradient>.map3Enabled           Boolean     default: true       -- alias: Map_3_Enable

When on, the associated map is enabled.

<Gradient>.color2Pos             Float       default: 0.5        -- animatable, alias: Color_2_Position

Controls the centerpoint of the middle color. The position ranges from 0 to 1. When it is 0, color2 replaces color3. When it is 1, color2 replaces color1.

<Gradient>.gradientType          Integer     default: 0          -- alias: Gradient_Type

Sets the type of gradient:

0- Linear (Interpolates the color based on the vertical position.)

1- Radial (Interpolates based on the distance from the center of the map.)

<Gradient>.noiseAmount           Float       default: 0.0        -- animatable, alias: Noise_Amount

When nonzero (ranges from 0 to 1), applies a noise effect. This perturbs the color interpolation parameter using a 3D noise function based on U, V, and Phase.

<Gradient>.noiseType             Integer     default: 0          -- alias: Noise_Type

Set the type of noise

0- Regular (Generates plain noise. This is the same as Fractal noise with the Levels setting at 1.)

1- Fractal (Generates noise using a fractal algorithm. noiselevels sets the number of iterations for the fractal noise.)

2- Turbulence (Generates fractal noise with an absolute value function applied to it to make fault lines. The noise amount must be greater than 0 to see any effects of turbulence.)

<Gradient>.noiseSize             Float       default: 1.0        -- animatable, alias: Noise_Size

Scales the noise function. Smaller values give smaller chunks of noise.

<Gradient>.noisePhase            Float       default: 0.0        -- animatable, alias: Noise_Phase

Controls the speed of the animation of the noise function. A 3D noise function is used for the noise. The first two parameters are U and V and the third is phase.

<Gradient>.noiseLevels           Float       default: 4.0        -- animatable, alias: Noise_Levels

Sets the number of fractal iterations or turbulence (as a continuous function).

<Gradient>.noiseThresholdLow     Float       default: 0.0        -- animatable, alias: Low_Threshold

<Gradient>.noiseThresholdHigh    Float       default: 1.0        -- animatable, alias: High_Threshold

<Gradient>.noiseThresholdSMooth  Float       default: 0.0        -- animatable, alias: Threshold_Smoothing

When the noise value is above the Low threshold and below the High threshold, the dynamic range is stretched to fill 0-1. This produces a smaller discontinuity at the threshold transition and thus causes less potential aliasing.

noiseThresholdLow: Sets the low threshold.

noiseThresholdHigh: Sets the high threshold.

NoiseThresholdSmooth: Helps make a smoother transition from the threshold value to the noise value. When 0, no smoothing is applied. When it is 1, the maximum amount of smoothing is applied.

<Gradient>.coords                StandardUVGen                   -- alias: coordinates

See UVGenClass for the StandardUVGen properties.

<Gradient>.output                StandardTextureOutput

See TexOutputClass for the StandardTextureOutput properties.

See also