Update
This commit is contained in:
parent
c7c4048a44
commit
c353c87c51
3 changed files with 15 additions and 6 deletions
projects/projectile
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue