Documentation

Color HDR - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Color HDR

Root.ColorHDR
High Dynamic Range (HDR) color

Functions

Constructor ( Red Float, Green Float, Blue Float, Alpha Float )
Creates an HDR color based on RGBA floating-point values
Constructor ( Color Color HDR, Alpha Float )
Creates an HDR color based on another HDR color and floating-point alpha
Constructor ( )
Constructor ( Other Color )
Creates an HDR color based on a standard color
Add ( Color 1 Color HDR, Color 2 Color HDR ) Color HDR
Returns the addition of two colors
Subtract ( Color 1 Color HDR, Color 2 Color HDR ) Color HDR
Returns the subtraction of two colors
Modulate ( Color 1 Color HDR, Color 2 Color HDR ) Color HDR
Returns the modulation of two colors
Average ( Color 1 Color HDR, Color 2 Color HDR ) Color HDR
Returns the average between two colors
Linear Interpolate ( Color 1 Color HDR, Color 2 Color HDR, Factor Float ) Color HDR
Returns Color 1 if Factor is 0, Color 2 if Factor is 1 and the average of Color 1 and 2 if Factor is 0.5, with everything in between using color interpolation
Linear Interpolate within Range ( Color Color HDR, Minimum Source Color HDR, Maximum Source Color HDR, Minimum Target Color HDR, Maximum Target Color HDR ) Color HDR
Returns a color mapped from the original range to the target range
Alpha Blend (Premultiply) ( Color 1 Color HDR, Color 2 Color HDR ) Color HDR
Returns Color 1 if Alpha is 0, Color 2 if Alpha is 255 and the average of Color 1 and 2 if Alpha is 127, with everything in between using color interpolation; only Alpha from Color 2 is used

Properties

Red Float
amount of Red in the color (0.0-1.0 usually)
Green Float
amount of Green in the color (0.0-1.0 usually)
Blue Float
amount of Blue in the color (0.0-1.0 usually)
Alpha Float
transparency level of the color (0.0-1.0 usually)

If you think anything is missing, please feel free to: submit documentation feedback on this page