Documentation

Color - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Color

Root.Color
Color in RGBA format

Functions

Constructor ( Red Byte, Green Byte, Blue Byte, Alpha Byte )
Creates a color based on RGBA values
Constructor ( Color Color, Alpha Byte )
Creates a color based on another color and alpha
Constructor ( Other Color HDR )
Creates a standard color based on an HDR color
Constructor ( )
Constructor ( Color Integer )
Creates a color based on a AARRGGBB integer value
Add ( Color 1 Color, Color 2 Color ) Color
Returns the addition of two colors
Subtract ( Color 1 Color, Color 2 Color ) Color
Returns the subtraction of two colors
Modulate ( Color 1 Color, Color 2 Color ) Color
Returns the modulation of two colors
Average ( Color 1 Color, Color 2 Color ) Color
Returns the average between two colors
Linear Interpolate ( Color 1 Color, Color 2 Color, Factor Float ) Color
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, Minimum Source Color, Maximum Source Color, Minimum Target Color, Maximum Target Color ) Color
Returns a color mapped from the original range to the target range
Alpha Blend (Premultiply) ( Color 1 Color, Color 2 Color ) Color
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 Byte
amount of Red in a color (0-255)
Green Byte
amount of Green in a color (0-255)
Blue Byte
amount of Blue in a color (0-255)
Alpha Byte
amount of transparency in a color (0-255)
Brightness Byte
brightness of a color (0-255)
Chroma Byte
chroma of a color
Saturation Byte
saturation of a color (0-255)
ABGR Integer
color as an AABBGGRR integer
ARGB Integer
color as an AARRGGBB integer
Value Integer
color as an integer in the same ordering as the integer constructor

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