PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Utility
libcolormath
getColorRRGGBB.c
1
/*
2
* @file getColorRRGGBB.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
getColorRRGGBB(
int
r,
int
g,
int
b)
20
{
21
return
((r & 0xFF) << 16) | ((g & 0xFF) << 8) | (b & 0xFF);
22
}
23
24
25
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17