Kanzi 3.9.10
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

namespace  kanzi
 

Functions

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

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