User Tools

Site Tools


rusty_vu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
rusty_vu [2009/06/16 17:53]
macegr
rusty_vu [2009/06/21 03:06]
macegr
Line 175: Line 175:
  
 **rgbdefs.h** **rgbdefs.h**
-<code cpp>typedef struct {float R, G, B;} RGBType;+<code cpp>#define RETURN_HSV(h, s, v) {HSV.H = h; HSV.S = s; HSV.V = v; return HSV;} 
 +#define RETURN_RGB(r, g, b) {RGB.R = r; RGB.G = g; RGB.B = b; return RGB;} 
 +#define UNDEFINED -1  
 +typedef struct {float R, G, B;} RGBType;
 typedef struct {float H, S, V;} HSVType; typedef struct {float H, S, V;} HSVType;
 </code> </code>
 +
 +//RGB-HSV conversion functions from [[http://www.alvyray.com/Papers/hsv2rgb.htm]]//
/home/macetec/public_html/docs/data/pages/rusty_vu.txt · Last modified: 2011/07/28 19:01 by macegr