Skip to content

Instantly share code, notes, and snippets.

@moonmilk
Created May 31, 2015 23:20
Show Gist options
  • Save moonmilk/2f11d31f4032c35bbb44 to your computer and use it in GitHub Desktop.
Save moonmilk/2f11d31f4032c35bbb44 to your computer and use it in GitHub Desktop.
graphics in tracery
{
"origin": [
"<svg width=\"400\" height=\"200\">#pattern#</svg>"
],
"circlecolor": [
"pink",
"cyan",
"yellow",
"orange",
"gray",
"red"
],
"rand": [
"20%",
"50%",
"80%"
],
"circle": [
"<circle cx=\"#rand#\" cy=\"#rand#\" r=\"#rand#\" fill=\"#circlecolor#\" fill-opacity=\"0.5\"/>"
],
"pattern": [
"#circle# #pattern#",
"#circle# #circle#",
"#circle# #circle# #circle#"
]
}
@moonmilk
Copy link
Author

learning how to do generative graphics in Tracery http://www.brightspiral.com/tracery/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment