Differences

This shows you the differences between two versions of the page.

canvas_pictures [2010/08/16 18:21]
jipsen
canvas_pictures [2010/08/16 18:23] (current)
70.187.181.90
Line 50: Line 50:
} }
chain2d(6,6) chain2d(6,6)
 +</script>
 +
 +<canvas id="c5" width="420" height="420"></canvas>
 +<script>
 +unit=20;nodes=new Array;c=document.getElementById('c5').getContext('2d');c.translate(10,-10);labelnode=false;
 +function chain(n,x,y){
 +  for(var i=0;i<n;i++) node(i+x,i+y,''+i+y);
 +  if(y>0) for(var i=0;i<n;i++) edge(''+i+(y-1),''+i+y);
 +  for(var i=0;i<n-1;i++) edge(''+i+y,''+(i+1)+y);
 +  edge(''+(n-1)+y,''+(n-1)+y);
 +}
 +function chain2d(m,n){
 +  for(var i=0;i<m;i++) chain(n,m-i-1,i);
 +}
 +chain2d(11,11)
</script> </script>
</html> </html>
==5-element modular lattice== ==5-element modular lattice==
$M_3$ $M_3$