Kore 3
Loading...
Searching...
No Matches
includes
kore3
color.h
Go to the documentation of this file.
1
#ifndef KORE_COLOR_HEADER
2
#define KORE_COLOR_HEADER
3
4
#include <
kore3/global.h
>
5
6
#include <stdint.h>
7
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
19
KORE_FUNC
void
kore_color_components
(uint32_t color,
float
*red,
float
*green,
float
*blue,
float
*alpha);
20
21
#define KORE_COLOR_BLACK 0xff000000
22
#define KORE_COLOR_WHITE 0xffffffff
23
#define KORE_COLOR_RED 0xffff0000
24
#define KORE_COLOR_BLUE 0xff0000ff
25
#define KORE_COLOR_GREEN 0xff00ff00
26
#define KORE_COLOR_MAGENTA 0xffff00ff
27
#define KORE_COLOR_YELLOW 0xffffff00
28
#define KORE_COLOR_CYAN 0xff00ffff
29
30
#ifdef __cplusplus
31
}
32
#endif
33
34
#endif
kore_color_components
KORE_FUNC void kore_color_components(uint32_t color, float *red, float *green, float *blue, float *alpha)
Splits up a 32 bit ARGB color value into its components.
global.h
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Generated by
1.15.0