Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Functions

Light Functions
[Common functions]


file  common-light.h

Functions common to light sensor drivers.


void RGBtoHSV (float red, float green, float blue, float &hue, float &sat, float &value)

Detailed Description

Functions common to light sensor drivers

Function Documentation

void RGBtoHSV ( float  red,
float  green,
float  blue,
float &  hue,
float &  sat,
float &  value 

Convert RGB colors to HSV

redthe red input value
greenthe green input value
bluethe blue input value
huethe hue output value (from 0 to 365, or -1 if n/a)
satthe saruration output value (from 0 to 100, or -1 if n/a)
valuethe value output value (from 0 to 100)

Definition at line 43 of file common-light.h.