mn_color.hpp File Reference
#include "../mn_string.hpp"
#include "../mn_algorithm.hpp"

Go to the source code of this file.

Classes

class  mn::math::basic_color< T >
 A class for RGBA Color handling. More...
 
union  mn::math::basic_color.__unnamed3__
 
struct  mn::math::basic_color.__unnamed3__.__unnamed5__
 
struct  mn::math::basic_color.__unnamed3__.__unnamed7__
 

Namespaces

 mn
 
 mn::math
 

Typedefs

using mn::math::color = basic_color< float >
 

Functions

template<typename T >
basic_color< T > mn::math::operator+ (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
basic_color< T > mn::math::operator- (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
basic_color< T > mn::math::operator- (const basic_color< T > &c)
 
template<typename T >
basic_color< T > mn::math::operator* (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
basic_color< T > mn::math::operator* (const basic_color< T > &c, const T f)
 
template<typename T >
basic_color< T > mn::math::operator* (const T f, const basic_color< T > &c)
 
template<typename T >
basic_color< T > mn::math::operator/ (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
basic_color< T > mn::math::operator/ (const basic_color< T > &c, const T f)
 
template<typename T >
bool mn::math::operator== (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
bool mn::math::operator!= (const basic_color< T > &a, const basic_color< T > &b)
 
template<typename T >
basic_color< T > mn::math::negate (const basic_color< T > &c)
 negate More...
 
template<typename T >
mn::math::brightness (const basic_color< T > &c)
 brightness More...
 
template<typename T >
basic_color< T > mn::math::interpolate (const basic_color< T > &c1, const basic_color< T > &c2, const T p)
 interpolate More...
 
template<typename T >
basic_color< T > mn::math::min (const basic_color< T > &c1, const basic_color< T > &c2)
 Get the min color. More...
 
template<typename T >
basic_color< T > mn::math::max (const basic_color< T > &c1, const basic_color< T > &c2)
 Get the max color. More...
 
template<typename T >
basic_color< T > mn::math::from_yuv (const T y, const T u, const T v)
 Create a RGBA color object from a yuv. More...
 
template<typename T >
basic_color< T > mn::math::from_cmy (const T c, const T m, const T y)
 Create a RGBA color object from a cmy. More...
 
template<typename T >
basic_color< T > mn::math::from_hsv (const T h, const T s, const T v)
 Create a RGBA color object from a hsv. More...
 

Class Documentation

◆ mn::math::basic_color.__unnamed3__

union mn::math::basic_color.__unnamed3__
Class Members
__unnamed3__ __unnamed__
__unnamed3__ __unnamed__
value_type c[4]

◆ mn::math::basic_color.__unnamed3__.__unnamed5__

struct mn::math::basic_color.__unnamed3__.__unnamed5__
Class Members
value_type a The alpha value
value_type b The blue value
value_type g The green value
value_type r The red value

◆ mn::math::basic_color.__unnamed3__.__unnamed7__

struct mn::math::basic_color.__unnamed3__.__unnamed7__
Class Members
value_type alpha The alpha value
value_type blue The blue value
value_type green The green value
value_type red The red value