Files Class List
cyColor.h File Reference

Detailed Description

Color classes.

Author
Cem Yuksel
#include "cyCore.h"

Classes

class  Color3< T >
 RGB color class with 3 components. More...
 
class  Color4< T >
 RGBA color class with 4 components. More...
 
class  Color24
 24-bit RGB color class with 3 unsigned byte components More...
 
class  Color32
 32-bit RGBA color class with 4 unsigned byte components More...
 

Typedefs

typedef Color3< float > Color
 
typedef Color4< float > ColorA
 
typedef cy::Color cyColor
 RGB color class with 3 float components.
 
typedef cy::Color3f cyColor3f
 RGB color class with 3 float components.
 
typedef cy::Color3d cyColor3d
 RGB color class with 3 double components.
 
typedef cy::ColorA cyColorA
 RGBA color class with 4 float components.
 
typedef cy::Color4f cyColor4f
 RGBA color class with 4 float components.
 
typedef cy::Color4d cyColor4d
 RGBA color class with 4 double components.
 
typedef cy::Color24 cyColor24
 24-bit RGB color class with 3 unsigned byte components
 
typedef cy::Color32 cyColor32
 32-bit RGBA color class with 4 unsigned byte components
 

Common math functions

typedef Color3< float > Color3f
 RGB color class with 3 float components.
 
typedef Color4< float > Color4f
 RGBA color class with 4 float components.
 
typedef Color3< double > Color3d
 RGB color class with 3 double components.
 
typedef Color4< double > Color4d
 RGBA color class with 4 double components.
 
template<typename T >
Color3< T > Abs (Color3< T > const &c)
 Returns a color with abs applied to all components.
 
template<typename T >
Color3< T > Exp (Color3< T > const &c)
 Returns a color with exponential applied to all components.
 
template<typename T >
Color3< T > Exp2 (Color3< T > const &c)
 Returns a color with base-2 exponential applied to all components.
 
template<typename T >
Color3< T > Log (Color3< T > const &c)
 Returns a color with natural logarithm applied to all components.
 
template<typename T >
Color3< T > Log2 (Color3< T > const &c)
 Returns a color with base-2 logarithm applied to all components.
 
template<typename T >
Color3< T > Log10 (Color3< T > const &c)
 Returns a color with base-10 logarithm applied to all components.
 
template<typename T >
Color3< T > Sqrt (Color3< T > const &c)
 Returns a color with square root applied to all components.
 
template<typename T >
Color3< T > Pow (Color3< T > const &c, T exponent)
 Returns a color with square root applied to all components.
 
template<typename T >
Color4< T > Abs (Color4< T > const &c)
 Returns a color with abs applied to all components.
 
template<typename T >
Color4< T > Exp (Color4< T > const &c)
 Returns a color with exponential applied to all components.
 
template<typename T >
Color4< T > Exp2 (Color4< T > const &c)
 Returns a color with base-2 exponential applied to all components.
 
template<typename T >
Color4< T > Log (Color4< T > const &c)
 Returns a color with natural logarithm applied to all components.
 
template<typename T >
Color4< T > Log2 (Color4< T > const &c)
 Returns a color with base-2 logarithm applied to all components.
 
template<typename T >
Color4< T > Log10 (Color4< T > const &c)
 Returns a color with base-10 logarithm applied to all components.
 
template<typename T >
Color4< T > Sqrt (Color4< T > const &c)
 Returns a color with square root applied to all components.
 
template<typename T >
Color4< T > Pow (Color4< T > const &c, T exponent)
 Returns a color with square root applied to all components.