Skip to content

Instantly share code, notes, and snippets.

@therabidbanana
Created May 29, 2010 22:54
Show Gist options
  • Save therabidbanana/418607 to your computer and use it in GitHub Desktop.
Save therabidbanana/418607 to your computer and use it in GitHub Desktop.
// This tells the awesome rule to execute on start
startshape awesome
rule awesome{
// Call the shape1 rule
shape1 { hue 220 b .6 sat .8}
// When telling itself to run again,
// the awesome rule rotates itself 13 degrees,
// shrinks by .99 and does a 21 point hue shift.
awesome { r 13 s .99 h 21 }
}
// This will draw a series of shrinking squares off into the distance
// that slowly change colors
rule shape1 {
// Draw a normal shape (square, in this instance)
shape { }
// Run again, shifting the x and y coordinates a bit, as well as the colors
shape1 { x .03 y .05 s .95 b .1 h .9 | x .8 y .1 b .7 }
}
rule shape {
SQUARE {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment