Last active
October 23, 2017 17:44
-
-
Save Mesparza99/20d9f9863099770ecf1da79ebc22eab0 to your computer and use it in GitHub Desktop.
Final// source http://jsbin.com/pifuhog
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
<html> | |
<head> | |
<title>Final</title> | |
<script data-require="p5.js@0.5.7" data-semver="0.5.7" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"> | |
<\/script> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<h1>Final</h1> | |
<script src="script.js"><\/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
x = 450; // variable x intialized at 450 | |
y = 195; // variable y intialized at 195 | |
function setup() { | |
canvas = createCanvas(600, 400); | |
} | |
function draw() { | |
background(0,51,105); | |
if (x > 500) { | |
x = 413;} | |
fill (100,3.1,0) | |
ellipse (x+=4,y+=2,25,25,); | |
if (y > 380) | |
y = 200 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment