Skip to content

Instantly share code, notes, and snippets.

@kolen
Created June 26, 2009 19:13
Show Gist options
  • Save kolen/136676 to your computer and use it in GitHub Desktop.
Save kolen/136676 to your computer and use it in GitHub Desktop.
startshape all
rule all {
40* {x 0.1} initialsplat { hue 0 sat 1 b 0.25 }
cuts {x 1.5 y -1.3}
}
rule initialsplat 0.1 {
splat {}
scatter {}
}
rule initialsplat {initialsplat{x 0.1}}
rule initialsplat {initialsplat{r 10}}
rule initialsplat {initialsplat{r 10}}
rule initialsplat {
splat {s 0.9}
}
rule initialsplat {
splat {s 1.2}
}
rule splat {
stream {}
}
rule splat {
splat {b 0.05}
}
rule splat {
splat {s 0.5}
splat {r 10 s 0.8}
}
rule splat {
splat {}
splat {r -10 s 0.8}
}
rule splat {
splat {y -0.9}
}
rule splat 0.1 {
splat {}
extsplat {s 0.1}
}
rule extsplat {
extsplat {x 0.1}
}
rule extsplat {
extsplat {r 23}
}
rule extsplat {
scatter {}
}
// -- stream --
rule stream 60 {
CIRCLE {a -0.9}
stream {s 0.99}
}
rule stream 10 {
CIRCLE {a -0.5}
shortstream {y -0.1 s 0.5}
}
// -- shortstream --
rule shortstream {
CIRCLE {a -0.1}
shortstream {y -0.1 s 0.9 0.5}
}
rule shortstream 0.1 {
shortstream {b -0.01}
}
rule shortstream 0.01 {
shortstream {x -0.2 y -0.1 s 0.5 1 a -0.1}
shortstream {x 0.2 y -0.1 s 0.5 1 a -0.1}
}
rule shortstream 0.05 {
shortstream {}
scatter {}
}
// -- longstream --
rule longstream {
100* {y -0.1 s 0.99} CIRCLE {}
shortstream {y -10}
}
rule scatter {
CIRCLE {}
360* {r 3} scatterparticle {s 0.2}
}
//rule scatterparticle 10 {
//}
rule scatterparticle 2 {
scatterparticle {x -1}
}
rule scatterparticle 10 {
scatterparticle {s 0.9}
}
rule scatterparticle {
CIRCLE {}
}
rule scatterparticle 0.001 {
scatter {s 5}
}
rule cut 4 {
CIRCLE {}
cut {x 0.2}
}
rule cut 1 {cut {s 0.9}}
rule cut 0.5 {cut {s 1.1}}
rule cut 4 {cut {r 1}}
rule cut 4 {cut {r -1}}
rule bicut {
cut {}
cut {r 180}
}
rule cutstart 0.01 {bicut {}}
rule cutstart {cutstart {x 0.1}}
rule cutstart {cutstart {r 10}}
rule cutstart {cutstart {r -10}}
rule cuts {
6* {} cutstart {sat 1 s 0.1 z 7}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment