# Difference between revisions of "Animation II"

From JSXGraph Wiki

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

Line 5: | Line 5: | ||

i=0; | i=0; | ||

− | p.moveTo([Math.sin(i*Math.PI*2/12),-Math.cos((i++)*Math.PI*2/12)],500); | + | p.moveTo([Math.sin(i*Math.PI*2/12),-Math.cos((i++)*Math.PI*2/12)],500); |

− | p.moveTo([Math.sin(i*Math.PI*2/12),-Math.cos(i*Math.PI*2/12)],500); | + | p.moveTo([Math.sin(i*Math.PI*2/12),-Math.cos(i*Math.PI*2/12)],500); |

</jsxgraph> | </jsxgraph> | ||

## Revision as of 17:24, 30 September 2009

### The JavaScript code

```
brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-2,2,2,-2], keepaspectratio:true, axis:true});
p = brd.createElement('point',[1.5,1.5],{face:'o', size:8, strokeColor:'red', fillOpacity:0.6, strokeOpacity: 0.6});
```