Animation III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) (New page: <jsxgraph width="600" height="600"> brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-0.2,1.2,1.2,-0.5], keepaspectratio:true}); p = []; len = 10; for (i=0;i<len;i++) { p[i] = brd.c...) |
A WASSERMANN (talk | contribs) 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}); | p[i] = brd.createElement('point',[Math.random(),Math.random()],{face:'o', size:8, strokeColor:'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> |