cx += random()
cy += random()
cx += random() * 0.2
cy += random() * 10
velocity = random()
accumulating = running_sum(velocity)
c += velocity + accumulating
c += velocity + accumulating + anotherVelocity
||
Starting points
+
random offsets
+
accumulated random offsets
{
start: 'F-F-F-F'
}
{
start: 'F-F-F-F',
rule: {
F: 'FF-F+F-F-FF',
}
}
// FF-F+F-F-FF
// -FF-F+F-F-FF
// -FF-F+F-F-FF
// -FF-F+F-F-FF
F: 'FF-F+F-F-FF'
↓
F: 'F--F+F-F-FF'
↓
F: 'F--F+FFF-FF'
↓
F: 'F--F+F-F-+F'
Dragon curve
L-Systems are recursive, substitution functions.
Changing a character can change the whole picture.
Slides at spaxe.github.io/programming-generative-art
Front-End Development | Data61