-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcolor.h
More file actions
31 lines (19 loc) · 695 Bytes
/
color.h
File metadata and controls
31 lines (19 loc) · 695 Bytes
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
#ifndef COLOR_H
#define COLOR_H
#define COLOR_MAX_COLOR 256.0
#define COLOR_MAX_AREA 16777216.0
#define COLOR_MAX_SPECIAL_AREA 262144.0
#include "types.h"
#include "vector.h"
////////////////////////////////////////////////////////////
// Interface
////////////////////////////////////////////////////////////
#ifndef COLOR_C
// Returns the overall area of the color
extern double color_area(vector3_t *color);
// Returns the colors area within the specified special
// special defined by: ( r in [1,4], g in [1,4], b in [1,4] )
extern double color_special_area(vector3_t *color, int r, int g, int b);
extern u32b_t color_is_black(vector3_t *color);
#endif
#endif