hyperion.ng
|
A color point in the color space of the hue system. More...
#include <LedDevicePhilipsHue.h>
Static Public Member Functions | |
static CiColor | rgbToCiColor (float red, float green, float blue, CiColorTriangle colorSpace) |
Converts an RGB color to the Hue xy color space and brightness. More... | |
static bool | isPointInLampsReach (CiColor p, CiColorTriangle colorSpace) |
static float | crossProduct (CiColor p1, CiColor p2) |
static CiColor | getClosestPointToPoint (CiColor a, CiColor b, CiColor p) |
static float | getDistanceBetweenTwoPoints (CiColor p1, CiColor p2) |
Public Attributes | |
float | x |
X component. | |
float | y |
Y component. | |
float | bri |
The brightness. | |
A color point in the color space of the hue system.
p1 | point one |
p2 | point tow |
a | reference point one |
b | reference point two |
p | the point to which the closest point is to be found |
p1 | point one |
p2 | point tow |
|
static |
p | the color point to check |
|
static |
Converts an RGB color to the Hue xy color space and brightness.
red | the red component in [0, 1] |
green | the green component in [0, 1] |
blue | the blue component in [0, 1] |