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
rusty_vu [2009/06/21 03:06]
macegr
rusty_vu [2011/07/28 19:01] (current)
macegr
Line 30: Line 30:
 PROGMEM prog_uchar Gradients[4][24] = { PROGMEM prog_uchar Gradients[4][24] = {
   {0,0,0, 25,25,0, 50,50,0, 100,100,0, 150,150,0, 200,200,0, 255,255,0, 0,0,0},   {0,0,0, 25,25,0, 50,50,0, 100,100,0, 150,150,0, 200,200,0, 255,255,0, 0,0,0},
-  {255,0,0, 255,0,0, 255,0,0, 255,0,0, 0,0,255, 0,0,255, 0,0,255, 0,0,255},+  {255,0,0, 255,0,0, 255,0,0, 255,0,0, 255,0,0, 255,0,0, 255,0,0, 0,0,255},
   {0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 255,0,0},   {0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 0,255,0, 255,0,0},
   {255,255,255, 255,0,255, 0,0,255, 0,255,0, 0,255,0, 255,255,0, 255,0,0, 0,0,0}   {255,255,255, 255,0,255, 0,0,255, 0,255,0, 0,255,0, 255,255,0, 255,0,0, 0,0,0}
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/attic/rusty_vu.1245567989.txt.gz ยท Last modified: 2009/06/21 03:06 by macegr