WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
RGB.h
1#ifndef _WINC_RGB
2#define _WINC_RGB
3
4namespace WXP {
5 struct RGB {
6 float red;
7 float grn;
8 float blu;
10 RGB();
11 int init();
12 int set( float r, float g, float b );
14 inline float getRed(){ return red; };
16 inline float getGrn(){ return grn; };
18 inline float getBlu(){ return blu; };
19 bool isOff();
20 bool isWhite();
21 bool isBlack();
22 int print();
23 };
24}
25#endif
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct defines a set of RGB values.
Definition: RGB.h:5
int set(float r, float g, float b)
Definition: RGB.cc:37
float grn
Definition: RGB.h:7
int init()
Definition: RGB.cc:24
bool isWhite()
Definition: RGB.cc:47
bool isBlack()
Definition: RGB.cc:55
float blu
Definition: RGB.h:8
bool isOff()
Definition: RGB.cc:63
int print()
Definition: RGB.cc:71
float getGrn()
Definition: RGB.h:16
float red
Definition: RGB.h:6
RGB()
Definition: RGB.cc:17
float getRed()
Definition: RGB.h:14
float getBlu()
Definition: RGB.h:18