neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
color.hpp File Reference

Go to the source code of this file.

Classes

struct  neogfx::color_return_type_cracker< Color, Derived >
 
struct  neogfx::color_return_type_cracker< Color, void >
 
class  neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >
 
class  neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >
 
class  neogfx::sRGB_color
 

Namespaces

namespace  neogfx
 

Typedefs

using neogfx::linear_color = basic_rgb_color< color_space::LinearRGB, scalar >
 
using neogfx::color = sRGB_color
 
typedef optional< colorneogfx::optional_color
 

Functions

scalar neogfx::sRGB_to_linear (scalar s, scalar scale=1.0)
 
scalar neogfx::linear_to_sRGB (scalar l, scalar scale=1.0)
 
scalar neogfx::to_sRGB (color_space srcSpace, scalar srcValue, scalar scale)
 
scalar neogfx::from_sRGB (color_space srcSpace, scalar srcValue, scalar scale)
 
color neogfx::mix (const color &aLhs, const color &aRhs, double aMixValue)