Colorful circles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 4: Line 4:




for (i=0;i<20;i++) {
for (i=0;i<100;i++) {
   var h = Math.random()*360;
   var h = Math.random()*360;
   var s = Math.random();
   var s = Math.random();
Line 13: Line 13:
       strokeColor:JXG.hsv2rgb(h,s,v),
       strokeColor:JXG.hsv2rgb(h,s,v),
       fillColor:JXG.hsv2rgb((h+180)%360,s,v),
       fillColor:JXG.hsv2rgb((h+180)%360,s,v),
       fillOpacity:0.5
       fillOpacity:0.7
       });
       });
}
}
</jsxgraph>
</jsxgraph>

Revision as of 10:06, 22 September 2009