Chesto
0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
src
colorspaces.hpp
1
#pragma once
2
typedef
struct
{
3
double
r;
// a fraction between 0 and 1
4
double
g;
// a fraction between 0 and 1
5
double
b;
// a fraction between 0 and 1
6
}
rgb
;
7
8
typedef
struct
{
9
double
h;
// angle in degrees
10
double
s;
// a fraction between 0 and 1
11
double
v;
// a fraction between 0 and 1
12
}
hsv
;
13
14
hsv
rgb2hsv(
rgb
in);
15
rgb
hsv2rgb(
hsv
in);
16
rgb
fromRGB(
int
r,
int
g,
int
b);
17
rgb
randomColor();
hsv
Definition:
colorspaces.hpp:8
rgb
Definition:
colorspaces.hpp:2
Generated by
1.9.4