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
Last revision Both sides next revision
rusty_vu [2009/06/21 03:06]
macegr
rusty_vu [2009/06/21 03:06]
macegr
Line 175: Line 175:
  
 **rgbdefs.h** **rgbdefs.h**
-#define RETURN_HSV(h, s, v) {HSV.H = h; HSV.S = s; HSV.V = v; return HSV;}+<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 RETURN_RGB(r, g, b) {RGB.R = r; RGB.G = g; RGB.B = b; return RGB;}
 #define UNDEFINED -1  #define UNDEFINED -1 
-<code cpp>typedef struct {float R, G, B;} RGBType;+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]]// //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