Last active
October 1, 2015 18:07
-
-
Save jywarren/5b1d1ff67d2820a3c652 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
onRun = function () { | |
if (ant.age < 300) { | |
ant.direction += Math.random()*10-5; | |
ant.trail('blue', 50); // x, y, rgb, amount | |
} else { | |
ant.speed = 0; | |
ant.color = "grey"; | |
} | |
} | |
onBump = function () { | |
this.direction += 90; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment