# Difference between revisions of "Colorful circles"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

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> |