Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am owendotcode on github.
  • I am owendotcode (https://keybase.io/owendotcode) on keybase.
  • I have a public key ASBj92_JOSIvURMKOydjOWROA7GKlivsZVTl3ZlOHHOAwAo

To claim this, I am signing this object:

@Owen-Chiu
Owen-Chiu / ant.ant
Created August 27, 2015 00:44
ant farm ant code
function () {
this.direction += Math.random()*10-5;
if (this.bump) this.direction += 90;
field.darken(this.x,this.y,0,100);
var fieldcolor = field.get(this.x,this.y)
if (fieldcolor[2]<250) this.height +=1
}