Colorful circles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
for (i=0;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. | fillOpacity:0.7 | ||
}); | }); | ||
} | } | ||
</jsxgraph> | </jsxgraph> |