blob: c9d0a9cf3f0c0b13bb2b8736ca7fed8144072576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef __DARKRL__COLORSPACE_HPP__
#define __DARKRL__COLORSPACE_HPP__
#include "Vector.hpp"
namespace Color
{
class Lab;
class XYZ
{
public:
XYZ( float x, float y, float z );
XYZ( const v3b& rgb );
XYZ( const Lab& lab );
v3i RGB() const;
float x, y, z;
};
class Lab
{
public:
Lab();
Lab( float L, float a, float b );
Lab( const XYZ& xyz );
Lab( const v3b& rgb );
float L, a, b;
};
}
#endif
|