Difference between revisions of "The HSV color scheme"

From JSXGraph Wiki
Jump to navigationJump to search
Line 8: Line 8:
 
var S = brd.createElement('slider',[[0,3],[5,3],[0,0.8,1]], {name:'S'});
 
var S = brd.createElement('slider',[[0,3],[5,3],[0,0.8,1]], {name:'S'});
 
var V = brd.createElement('slider',[[0,2.5],[5,2.5],[0,0.7,1]], {name:'V'});
 
var V = brd.createElement('slider',[[0,2.5],[5,2.5],[0,0.7,1]], {name:'V'});
var rct = brd.createElement('polygon',[[0,0],[0,1],[1,1],[1,0]]);
+
var rct = brd.createElement('curve',[[0,0,1,1,0],[0,1,1,0,0]]);
 
</jsxgraph>
 
</jsxgraph>

Revision as of 16:17, 11 August 2009

The HSV color scheme consists of three values:

  • Hue (base color): between 0 and 360
  • Saturation (purity): between 0 and 1
  • Value (brightness): between 0 and 1