diff --git a/examples/example 10 - Text/index.html b/examples/example 10 - Text/index.html index 04870e9..dbc2969 100644 --- a/examples/example 10 - Text/index.html +++ b/examples/example 10 - Text/index.html @@ -14,8 +14,7 @@
diff --git a/examples/example 10 - Text/index.html b/examples/example 10 - Text/index.html index 04870e9..dbc2969 100644 --- a/examples/example 10 - Text/index.html +++ b/examples/example 10 - Text/index.html @@ -14,8 +14,7 @@ diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); diff --git a/examples/example 10 - Text/index.html b/examples/example 10 - Text/index.html index 04870e9..dbc2969 100644 --- a/examples/example 10 - Text/index.html +++ b/examples/example 10 - Text/index.html @@ -14,8 +14,7 @@ diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); diff --git a/examples/example 15 - Filters/indexAll.html b/examples/example 15 - Filters/indexAll.html index 0ccd6b3..539f3e4 100644 --- a/examples/example 15 - Filters/indexAll.html +++ b/examples/example 15 - Filters/indexAll.html @@ -16,7 +16,6 @@ diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); diff --git a/examples/example 15 - Filters/indexAll.html b/examples/example 15 - Filters/indexAll.html index 0ccd6b3..539f3e4 100644 --- a/examples/example 15 - Filters/indexAll.html +++ b/examples/example 15 - Filters/indexAll.html @@ -16,7 +16,6 @@ @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate); diff --git a/examples/example 15 - Filters/index.html b/examples/example 15 - Filters/index.html index 8186947..bab78a7 100644 --- a/examples/example 15 - Filters/index.html +++ b/examples/example 15 - Filters/index.html @@ -111,8 +111,6 @@ help.position.x = 10; stage.addChild(help); - requestAnimFrame(animate); - function animate() { bg.rotation += 0.01; bgFront.rotation -= 0.01; @@ -136,6 +134,8 @@ renderer.render(stage); requestAnimFrame(animate); } + + requestAnimFrame(animate); @@ -92,9 +90,6 @@ viewHeight + dudeBoundsPadding * 2); var tick = 0; - - requestAnimationFrame(animate); - function animate() { // iterate through the dudes and update the positions @@ -104,7 +99,7 @@ dude.direction += dude.turningSpeed * 0.01; dude.position.x += Math.sin(dude.direction) * dude.speed; dude.position.y += Math.cos(dude.direction) * dude.speed; - dude.rotation = -dude.direction - Math.PI/2; + dude.rotation = -dude.direction - Math.PI / 2; // wrap the dudes by testing there bounds.. if (dude.position.x < dudeBounds.x) @@ -127,6 +122,7 @@ // request another animation frame... requestAnimationFrame(animate); } + requestAnimationFrame(animate);