Difference between revisions of "Colorful circles"

From JSXGraph Wiki
Jump to navigationJump to search
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 12:06, 22 September 2009