Created
April 13, 2013 21:10
-
-
Save tomfaulhaber/5380097 to your computer and use it in GitHub Desktop.
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
frameRate(100); | |
var startx=32; | |
var endx=165; | |
var frw=true; | |
var inc=5; | |
var x=startx; | |
var draw = function() { | |
//How can you change this into the picture I have? | |
//Note: Add any color. | |
background(163, 171, 224); | |
fill(91, 137, 217); | |
rect(113,177,170,156); | |
fill(145, 204, 181); | |
ellipse(200,124,142,115); | |
fill(64, 173, 91); | |
ellipse(228,125,30,30); | |
ellipse(170,125,30,30); | |
strokeWeight(10); | |
x=x+inc; | |
if (x>endx || x<startx) { | |
inc=-inc;} | |
line(x,51,118,207); | |
line(278,199,329,351); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment