Kanzi  3.9.7
Kanzi Engine API
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
 Easing functions that require external dependencies for calculation.
 

Functions

ColorRGBA kanzi::componentAbs (ColorRGBA v)
 Calculates component-wise absolute value for all elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentAdd (ColorRGBA v, float scalar)
 Adds a value to all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentCeil (ColorRGBA v)
 Calculates component-wise ceil value for all elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentFloor (ColorRGBA v)
 Calculates component-wise floor value for all elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentRound (ColorRGBA v)
 Calculates component-wise rounded value for all elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentSqrt (ColorRGBA v)
 Calculates component-wise square root all elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentSubtract (ColorRGBA v, float scalar)
 Subtracts a value from all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseDivide (ColorRGBA v1, ColorRGBA v2)
 Divides component-wise all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseMax (ColorRGBA v1, ColorRGBA v2)
 Calculates component-wise maximum for all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseMin (ColorRGBA v1, ColorRGBA v2)
 Calculates component-wise minimum for all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseMultiply (ColorRGBA v1, ColorRGBA v2)
 Multiplies component-wise all color elements and returns the resulting color. More...
 
ColorRGBA kanzi::componentWiseRemainder (ColorRGBA v1, ColorRGBA v2)
 Calculates component-wise the remainder for all color elements and returns the resulting color. More...
 
float kanzi::dotProduct (ColorRGBA v1, ColorRGBA v2)
 Calculates the dot product of two colors. More...
 
ColorRGBA kanzi::linearTosRGB (const ColorRGBA &cs)
 Converts whole ColorRGBA color from linear to sRGB. More...
 
bool kanzi::operator!= (ColorRGBA v1, ColorRGBA v2)
 Compares two colors for inequality. 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+ (float v1, ColorRGBA v2)
 Adds a color and a scalar and returns the sum. More...
 
ColorRGBA kanzi::operator+ (ColorRGBA v1, float v2)
 Adds a color and a scalar and returns the sum. More...
 
ColorRGBA kanzi::operator+ (ColorRGBA v1, ColorRGBA v2)
 Adds two colors and returns the sum. More...
 
ColorRGBA kanzi::operator+ (ColorRGBA v)
 Unary plus, doesn't do anything and returns the resulting color. More...
 
ColorRGBA kanzi::operator- (ColorRGBA v1, ColorRGBA v2)
 Subtracts two colors and returns the difference. More...
 
ColorRGBA kanzi::operator- (ColorRGBA v)
 Negates all color elements 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...
 
bool kanzi::operator== (ColorRGBA v1, ColorRGBA v2)
 Compares two colors for equality. More...
 
ColorRGBA kanzi::sRGBToLinear (const ColorRGBA &cs)
 Converts to whole ColorRGBA from sRGB to linear. More...
 

Variables

const ColorRGBA kanzi::ThemeBlue
 
const ColorRGBA kanzi::ThemeGray
 
const ColorRGBA kanzi::ThemeGreen
 
const ColorRGBA kanzi::ThemeOrange
 
const ColorRGBA kanzi::ThemeRed
 
const ColorRGBA kanzi::ThemeYellow