Skip to content

Commit

Permalink
edit to update_vector_field
Browse files Browse the repository at this point in the history
  • Loading branch information
exh12001 committed Nov 22, 2017
1 parent 730f57a commit 229d350
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/mobius.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
}
}
Expand Down
1 change: 0 additions & 1 deletion mobius.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.20/fabric.min.js"></script>
<script type="text/javascript" src="js/dat.gui.min.js"></script>
<script type="text/javascript" src="js/three.min.js"></script>
<script type="text/javascript" src="js/mobius.js"></script>
<!--script type="text/javascript" src="js/render.js"></script-->
Expand Down
2 changes: 0 additions & 2 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ body{
margin: 0;
}



.slider-container {
width: 100px;
height: 100px;
Expand Down

0 comments on commit 229d350

Please sign in to comment.