blob: 46d8e5a491301703d0ec33e42180dce69e64c376 (
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
|
#ifndef _PALETTE_H
#define _PALETTE_H
#define PALETTE_BLACKWHITE 0
#define PALETTE_RAINBOW 1
#define PALETTE_BANDS 2
#define PALETTE_BLUE_GREEN_RED 3
#define PALETTE_WILRIK 4
#define PALETTE_OLIVER 5
#define PALETTE_MAXCOLORS 256
struct color4f {
float r;
float g;
float b;
float a;
};
void HSVtoRGB(float *r, float *g, float *b, float h, float s, float v);
void RGBtoHSV(float r, float g, float b, float *h, float *s, float *v);
struct color4f set_palette(int colormap_sort, float value, int num_colors);
#endif
|