Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/easing3_animation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<head>
<meta charset="UTF-8">
<title>p5.func</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/addons/p5.dom.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/addons/p5.sound.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.10.0/p5.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.10.0/addons/p5.sound.min.js" type="text/javascript"></script>
<script src="../../lib/p5.func.js" type="text/javascript"></script>

<script src="sketch.js" type="text/javascript"></script>
Expand Down
6 changes: 3 additions & 3 deletions examples/easing3_animation/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -62,7 +61,7 @@ function draw()

var hs = '';
hs+= 'p5.Ease(): ' + curstyle + '<br><br>';
hs+= 'click around.';
hs+= 'click around. pitch is proportional to speed.';

tb.html(hs);

Expand All @@ -84,6 +83,7 @@ function draw()

function mousePressed()
{
userStartAudio();
curstyle = random(styles);
x = px;
y = py;
Expand Down