function symmetryrotateMain(mode,rel){this.version='0.81';this.mode=typeof mode!=='undefined'?mode:'3';this.rel=typeof rel!=='undefined'?rel:'../';w=220;h=220;var s="";s+='
';s+='
';s+='
';this.rots=[360];if(this.mode=='2'){s+='
';s+='
';this.rots=[180,360];}else{s+='
';s+='
';this.rots=[120,240,360];}
s+='
▶';s+='
© 2018 MathsIsFun.com v'+this.version+'
';s+='
';document.write(s);el=document.getElementById('canvasId');ratio=2;el.width=w*ratio;el.height=h*ratio;el.style.width=w+"px";el.style.height=h+"px";g=el.getContext("2d");g.setTransform(ratio,0,0,ratio,0,0);this.midX=w/2;this.midY=w/2;this.scale=0.044;this.radius=90;this.deg=0;this.markPts=[new Point(0,-this.radius),new Point(0,-this.radius+20)];this.pts=[new Point(this.midX,this.midY-this.radius),new Point(this.midX,this.midY-this.radius+20)];this.rotNo=0;sttShape(this.markPts);this.playQ=false;togglePlay();}
function animate(){this.deg++;drawAnim();var div=document.getElementById('shape1');div.style.transform='rotate('+(-1*(deg))+'deg)';if(this.deg