diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-05 20:12:35 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-05 20:12:35 +0200 |
| commit | c353c87c511b9d447f39f78826030d15a76b2691 (patch) | |
| tree | 7c832d7b337fa3cd9ab4c0df55b10ab5087c9452 /projects/projectile/index.js | |
| parent | c7c4048a44e54f0d61f3b07f11a70c5994a9da66 (diff) | |
Update
Diffstat (limited to 'projects/projectile/index.js')
| -rw-r--r-- | projects/projectile/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/projects/projectile/index.js b/projects/projectile/index.js index ce6ba44..3f2a2c3 100644 --- a/projects/projectile/index.js +++ b/projects/projectile/index.js @@ -13,7 +13,7 @@ let projectile= function (p){ p.setup = function() { c=p.createCanvas(Math.min(window.innerWidth,width), height); - + v0t=p.createElement('span', ''); katex.render("v_0", v0t.elt); @@ -55,9 +55,9 @@ let projectile= function (p){ draw_arrow(p,x0,height-y0,x0+v0,height-(y0+v0),v0t,c,skiparrow) p.stroke(121, 199, 107) - draw_arrow(p,50,50,50,0,vj,c,skiparrow,true) + draw_arrow(p,x0,height-y0,x0,height-y0-50,vj,c,skiparrow,true) p.stroke(199,119,107) - draw_arrow(p,50,50,100,50,vi,c,skiparrow) + draw_arrow(p,x0,height-y0,x0+50,height-y0,vi,c,skiparrow) p.pop() } |
