xxxxxxxxxx
95
function my_garden() {
my_flower()
}
function my_flower() {
stem_length = 3
my_stem()
branch(bud)
ring_radius = 0.5
ring_count = 14
ring(my_blossom)
}
function my_stem() {
wave_min = -0.4
wave_max = 0.4
stem_bend = wave(t * 0.5)
stem()
stem_bend = - wave(t / 3)
stem()
}
function my_blossom() {
size = 3 / 4
bud_size = 1 / 6
bud()
wave_min = -1
wave_max = 1
stem_bend = wave(t * 0.5) * 0.4
stem_color = "black"
stem_size = 0.2
repeat_count = 5
repeat(petal, stem)
ring_radius = 0
ring_count = 5
ring(my_petal)
my_bud()
}
function my_petal() {
petal_turn = t
petal_length = 3 / 4
petal_color = "red"
petal()
}
function my_bud() {
bud_size = 1 / 3
bud()
bud_size *= 1 / 2
bud()
bud_size *= 3 / 4
bud()
bud_size *= 3 / 4
bud()
}
function my_blossom2() {
repeat_count = 20
bud_offset = 1 / 2
petal_size = 1 / 5
repeat(my_bud2, petal)
bud_size = 1/4
bud()
petal_size = 0.5
petal_color = "red"
petal()
}
function my_bud2() {
bud_color = "lightblue"
bud_size = (1 - f) / 4
wave_min = -1
wave_max = 1
bud_turn = wave(f + t * 2) * f / 5
bud()
}