diff --git a/js/mobius.js b/js/mobius.js index 369a07e..51b3ca9 100644 --- a/js/mobius.js +++ b/js/mobius.js @@ -75,7 +75,7 @@ function update_vector_field(a,b,c,d){ for(var i = 0;i<10;i++){ for(var j = 0;j<10;j++){ x = remap(i,0,10,-2,2); - y = remap(i,0,10,-2,2); + y = remap(j,0,10,-2,2); res = mobius(a,b,c,d,new Complex(x,y)); pxx = remap(i,0,10,0,600); pyy = remap(j,0,10,600,0); //flip y @@ -84,7 +84,7 @@ function update_vector_field(a,b,c,d){ ctx.beginPath(); ctx.moveTo(pxx,pyy); ctx.lineTo(rx,ry); - ctx.lineTo(0,100) + ctx.stroke(); } } diff --git a/mobius.html b/mobius.html index 00bae48..7817d37 100644 --- a/mobius.html +++ b/mobius.html @@ -8,7 +8,6 @@ - diff --git a/style/style.css b/style/style.css index 6d4a28c..0b5796f 100644 --- a/style/style.css +++ b/style/style.css @@ -2,8 +2,6 @@ body{ margin: 0; } - - .slider-container { width: 100px; height: 100px;