All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
color_rgba.hpp File Reference

Classes

class  kanzi::ColorRGBA
 Color with 4 floating point components: red, green, blue and alpha (r, g, b, a). More...
 

Namespaces

 kanzi
 

Functions

ColorRGBA kanzi::componentWiseMax (ColorRGBA v1, ColorRGBA v2)
 Calculates the component wise maximum for all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseMin (ColorRGBA v1, ColorRGBA v2)
 Calculates the component wise minimum for all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseMultiply (ColorRGBA v1, ColorRGBA v2)
 Does component wise multiply for all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::operator+ (ColorRGBA v1, ColorRGBA v2)
 Adds two colors and returns the sum. More...
 
ColorRGBA kanzi::operator- (ColorRGBA v1, ColorRGBA v2)
 Subtracts two colors and returns the difference. More...
 
ColorRGBA kanzi::operator* (ColorRGBA v, float scalar)
 Multiplies all color elements with a scalar and returns the resulting color. More...
 
ColorRGBA kanzi::operator* (float scalar, ColorRGBA v)
 Multiplies all color elements with a scalar and returns the resulting color. More...
 
ColorRGBA kanzi::operator/ (ColorRGBA v, float scalar)
 Divides all color elements with a scalar and returns the resulting color. More...
 
ColorRGBA kanzi::operator- (ColorRGBA v)
 Negates all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::operator+ (ColorRGBA v)
 Unary plus, doesn't do anything and returns the resulting color. More...
 
bool kanzi::operator== (ColorRGBA v1, ColorRGBA v2)
 Compares two colors for equality. More...
 
bool kanzi::operator!= (ColorRGBA v1, ColorRGBA v2)
 Compares two colors for inequality. More...
 
float kanzi::dotProduct (ColorRGBA v1, ColorRGBA v2)
 Calculates the dot product of two colors. More...
 

Variables

KANZI_API const kanzi::ColorRGBA KanziThemeRed
 
KANZI_API const kanzi::ColorRGBA KanziThemeGreen
 
KANZI_API const kanzi::ColorRGBA KanziThemeBlue
 
KANZI_API const kanzi::ColorRGBA KanziThemeYellow
 
KANZI_API const kanzi::ColorRGBA KanziThemeGray
 
KANZI_API const kanzi::ColorRGBA KanziThemeOrange
 

Variable Documentation

KANZI_API const kanzi::ColorRGBA KanziThemeRed
KANZI_API const kanzi::ColorRGBA KanziThemeGreen
KANZI_API const kanzi::ColorRGBA KanziThemeBlue
KANZI_API const kanzi::ColorRGBA KanziThemeYellow
KANZI_API const kanzi::ColorRGBA KanziThemeGray
KANZI_API const kanzi::ColorRGBA KanziThemeOrange