Skip to main content

ColorData

Renderer.ColorData struct. Used by fancy shader drawings.

note

Part of Renderer namespace.

Properties

from: number - D3DCOLOR

Main color

to: number - D3DCOLOR

Secondary color - used in gradient

gradientType: GradientType

Gradient type

gradientAngle: number - float

Gradient angle

gradientFactor: number - float

Gradient factor

Functions

ColorData

Renderer.ColorData(
gradientType: GradientType,
from: number - D3DCOLOR,
to: number - D3DCOLOR,
gradientAngle?: number,
gradientFactor?: number
) ColorData

ArgumentTypeDescription
gradientTypeGradientTypeGradient type
fromnumber - D3DCOLORMain color
tonumber - D3DCOLORSecondary color - used in gradient
gradientAngle?numberGradient angle
gradientFactor?numberGradient factor

ColorData constructor from gradient type, two colors, gradient angle and gradient factor.


ColorData

Renderer.ColorData( from: number - D3DCOLOR, to: number - D3DCOLOR ) ColorData

ArgumentTypeDescription
fromnumber - D3DCOLORMain color
tonumber - D3DCOLORSecondary color

ColorData constructor from two colors with linear gradient.


ColorData

Renderer.ColorData( from: number - D3DCOLOR ) ColorData

ArgumentTypeDescription
fromnumber - D3DCOLORMain color

ColorData constructor from single solid color.


ColorData

Renderer.ColorData() ColorData

Default ColorData constructor.