How to Generate Art

It's creative because I can't imagine the goal from the beginning. You need to tweak again and again. Let's get to start from Octopod.

Octopod is like this.

image

Above will be like this.

image

Here is the starting point.

code is:

set maxdepth 100
10 * { ry 36 sat 0.9 } 30 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 a 0.3 } r1
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {}

I generate an object while rotating it around the X-axis. Too close to the object.

code is:

set maxdepth 100
12 * { rx 30 } aa
rule aa {
10 * { ry 36 sat 0.9 } 10 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 } r1
}
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {}

I move away from the object. How is this? Is this better?

code is:

set maxdepth 100
{ s 0.2 } bb
rule bb {
12 * { rx 30 } aa
}
rule aa {
10 * { ry 36 sat 0.9 } 10 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 } r1
}
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {}

Next, I sharpen the tips.

code is:

set maxdepth 100
{ s 0.2 } bb
rule bb {
12 * { rx 30 } aa
}
rule aa {
10 * { ry 36 sat 0.9 } 10 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 } r1
}
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {
r2
}
rule r2 md 4 {
{ s 0.8 rz -5 h 5 rx -5 x 1 } r2
{ s 1 0.2 0.2 } box
}

I randamize color this time. Looks cool!

code is:

set maxdepth 100
{ s 0.2 } bb
rule bb {
12 * { rx 30 color random } aa
}
rule aa {
10 * { ry 36 sat 0.9 } 10 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 } r1
}
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {
r2
}
rule r2 md 4 {
{ s 0.8 rz -5 h 5 rx -5 x 1 } r2
{ s 1 0.2 0.2 } box
}

Generate 2 objects and change the size each other. It looks good to rotate around the origin.

code is:

set maxdepth 100
{ x -4 s 0.15 } bb
{ x 4 s 0.2 } bb
rule bb {
12 * { rx 30 color random } aa
}
rule aa {
10 * { ry 36 sat 0.9 } 10 * { ry 10 } 1 * { h 30 b 0.8 sat 0.8 } r1
}
rule r1 w 20 {
{ s 0.9 rz 5 h 5 rx 5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 w 20 {
{ s 0.99 rz -5 h 5 rx -5 x 1 } r1
{ s 1 0.2 0.5 } box
}
rule r1 {
r2
}
rule r2 md 4 {
{ s 0.8 rz -5 h 5 rx -5 x 1 } r2
{ s 1 0.2 0.2 } box
}