PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Utility
libcolormath
libcolormath.c
1
/*
2
* @file libcolorMath.c
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
14
15
16
#include "colormath.h"
17
18
19
int
main
()
20
{
21
22
/*
23
int c1 = 0xFFDDCC;
24
int c2 = 0xCCCCCC;
25
26
print("compare: %d\n\n", compareRRGGBB(c1, c2));
27
28
pause(200);
29
30
print("get BLUE: %x\n\n", get8bitColor(c2, "BLUE"));
31
32
pause(200);
33
34
print("get color: %x\n\n", getColorRRGGBB(204,255,0));
35
36
pause(200);
37
38
print("remap: %x\n\n", remapColor(0xFFDDCC, "8R8G8B", "8G8B8R"));
39
*/
40
41
}
42
43
44
45
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17