PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Utility
libcolormath
colormath.h
1
/*
2
* @file colorMath.h
3
*
4
* @author Matthew Matz
5
*
6
* @version 0.9
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2016. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief This library contains a set of functions to make color space manipulation and math easier.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
#ifndef COLORMATH_H // Prevents duplicate
18
#define COLORMATH_H // declarations
19
20
#if defined(__cplusplus) // If compiling for C++
21
extern
"C"
{
// Compile for C
22
#endif
23
24
25
#include <propeller.h>
26
#include <stdlib.h>
27
38
int
compareRRGGBB(
int
c1,
int
c2);
39
40
53
int
getColorRRGGBB(
int
r,
int
g,
int
b);
54
55
67
int
get8bitColor(
int
c,
char
*i);
68
69
86
int
remapColor(
int
c,
char
*f1,
char
*f2);
87
88
98
int
remapColor888to565(
int
c);
99
100
101
102
#if defined(__cplusplus)
103
}
// End compile for C block
104
#endif
105
/* __cplusplus */
106
107
#endif // End prevent duplicate forward
108
/* COLORMATH_H */
// declarations block
109
110
111
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17