diff --git a/examples/easing3_animation/index.html b/examples/easing3_animation/index.html index f127005..a1bb929 100755 --- a/examples/easing3_animation/index.html +++ b/examples/easing3_animation/index.html @@ -3,9 +3,8 @@ p5.func - - - + + diff --git a/examples/easing3_animation/sketch.js b/examples/easing3_animation/sketch.js index c61778a..72ef97f 100755 --- a/examples/easing3_animation/sketch.js +++ b/examples/easing3_animation/sketch.js @@ -9,13 +9,12 @@ var t = 0.; var doclear; var x, y, tx, ty, x1, y1, px, py; - var osc, rev; - var tb; // textbox function setup() { + getAudioContext().suspend(); createCanvas(800, 600); background(255); fill(0); @@ -62,7 +61,7 @@ function draw() var hs = ''; hs+= 'p5.Ease(): ' + curstyle + '

'; - hs+= 'click around.'; + hs+= 'click around. pitch is proportional to speed.'; tb.html(hs); @@ -84,6 +83,7 @@ function draw() function mousePressed() { + userStartAudio(); curstyle = random(styles); x = px; y = py;