diff --git a/ISN/P5js/lib/sketch.js b/ISN/P5js/lib/sketch.js index 14358c1..b5ac089 100644 --- a/ISN/P5js/lib/sketch.js +++ b/ISN/P5js/lib/sketch.js @@ -114,7 +114,7 @@ var myp5 = new p5(circleBall, 'c4'); var myp5 = new p5(circleBall, 'c4bis'); var waveBall = function (p) { - var x = 25; + var x = 50; var y = 25; var ballRadius = 20; var t = 0; @@ -127,7 +127,7 @@ var waveBall = function (p) { p.background(white); p.fill(black); t += speed; - x = p.cos(t) * pathRadius + 50; + y = p.cos(t) * pathRadius + 50; p.ellipse(x, y, ballRadius, ballRadius); } };