3 by 3 Pixel Patterns
Posted: Fri Jul 08, 2005 7:15 pm
Here's one that makes a surprising variety of shapes:
Be sure to post any variations. One tip: you can use the a_unit in your cfdg files instead of a pixel for some interesting results.
Code: Select all
startshape c_unit
rule c_unit {
b_unit{}
b_unit {x 6}
b_unit {x 12}
b_unit {x 18}
b_unit {x 24}
}
rule c_unit 0.1 {}
rule b_unit {
b_row {}
b_row {y 1}
b_row {y 2}
b_row {y 3}
b_row {y 4}
b_row {y 5}
}
rule b_row {
b_cell {}
b_cell {x 1}
b_cell {x 2}
b_cell {x 3}
b_cell {x 4}
b_cell {x 5}
}
rule b_cell {
a_unit {s 0.1}
}
// -------------------------
rule a_unit {
a_row {}
a_row {y+1}
a_row {y+2}
}
rule a_row {
a_cell {}
a_cell {x+1}
a_cell {x+2}
}
rule a_cell {
//SQUARE {b 0.8}
}
rule a_cell {
SQUARE {}
}