-
-
Save aurelianonava/61e359e9b82ca25f117b18a84b83e5ff to your computer and use it in GitHub Desktop.
template.js// source https://jsbin.com/nesebi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>template.js</title> | |
<script data-require="p5.js@*" data-semver="0.3.0" src="https://rawgit.com/lmccart/p5.js/0.3.0/lib/p5.js"></script> | |
<script data-require="p5.dom.js@*" data-semver="0.3.0" src="https://rawgit.com/lmccart/p5.js/0.3.0/lib/addons/p5.dom.js"></script> | |
<script src="script.js" type="text/javascript"></script> | |
<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
/** | |
* Created by nani on 4/5/16. | |
*/ | |
var xPosition = 0; | |
function setup() { | |
createCanvas(480, 200); | |
} | |
function draw() { | |
background(200); | |
ellipse(xPosition+=1, 50, 50, 50); | |
} | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>template.js</title> | |
<script data-require="p5.js@*" data-semver="0.3.0" src="https://rawgit.com/lmccart/p5.js/0.3.0/lib/p5.js"><\/script> | |
<script data-require="p5.dom.js@*" data-semver="0.3.0" src="https://rawgit.com/lmccart/p5.js/0.3.0/lib/addons/p5.dom.js"><\/script> | |
<script src="script.js" type="text/javascript"><\/script> | |
<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style> | |
</head> | |
<body> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">/** | |
* Created by nani on 4/5/16. | |
*/ | |
var xPosition = 0; | |
function setup() { | |
createCanvas(480, 200); | |
} | |
function draw() { | |
background(200); | |
ellipse(xPosition+=1, 50, 50, 50); | |
} | |
</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by nani on 4/5/16. | |
*/ | |
var xPosition = 0; | |
function setup() { | |
createCanvas(480, 200); | |
} | |
function draw() { | |
background(200); | |
ellipse(xPosition+=1, 50, 50, 50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment