aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::Euclidean< OKLab > Struct Reference

Euclidean distance in OKLab: ΔE_OK, the color difference of CSS Color 4, where equal distances look about equally different. More...

Static Public Member Functions

static float distance (const OKLab &color1, const OKLab &color2)
 Perceived difference between two colors, ignoring alpha.

Detailed Description

Euclidean distance in OKLab: ΔE_OK, the color difference of CSS Color 4, where equal distances look about equally different.

Definition at line 82 of file Distance.cppm.

Member Function Documentation

◆ distance()

float aest::colors::Euclidean< OKLab >::distance ( const OKLab & color1,
const OKLab & color2 )
inlinestatic

Perceived difference between two colors, ignoring alpha.

Parameters
[in]color1First color
[in]color2Second color
Returns
The distance, 0 or greater: about 0.02 is just noticeable, and black to white is 1.

Definition at line 91 of file Distance.cppm.


The documentation for this struct was generated from the following file: