Math v0.2.0
SIMD optimized C++ mathematics library
Loading...
Searching...
No Matches
color-space.hpp File Reference

Common color space conversion functions. More...

#include "math/matrix.hpp"

Variables

constexpr float defaultGamma = 2.2f
 Default gamma correction value.

Detailed Description

Common color space conversion functions.

Variable Documentation

◆ defaultGamma

float defaultGamma = 2.2f
constexpr

Default gamma correction value.

The default gamma correction value of 2.2 is chosen because it approximates the natural response curve of CRT monitors, which were the most common display technology when gamma correction became standard. Modern displays have inherited this standard, as it closely matches how human vision perceives brightness non-linearly.