Animation III: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 4: Line 4:
len = 10;
len = 10;
for (i=0;i<len;i++) {
for (i=0;i<len;i++) {
     p[i] = brd.createElement('point',[Math.random(),Math.random()],{face:'o', size:8, strokeColor:'red', fillOpacity:0.4, strokeOpacity: 0.4, withLabel:false});
     p[i] = brd.createElement('point',[Math.random(),Math.random()],
              {face:'o', size:8, strokeColor:'red', fillColor:'red', fillOpacity:0.4, strokeOpacity: 0.4, withLabel:false});
}
}
//setInterval(function(){-p.moveTo([Math.sin(i*Math.PI*2/12),Math.cos(i*Math.PI*2/12)],800); i++; },1000);
//setInterval(function(){-p.moveTo([Math.sin(i*Math.PI*2/12),Math.cos(i*Math.PI*2/12)],800); i++; },1000);
</jsxgraph>
</jsxgraph>

Revision as of 15:37, 30 September 2009