Dry flowers

If you have a design you're proud of, share the cfdg file here. It's also a good place to ask for feedback and collaborate.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
lagroue
Posts: 114
Joined: Wed Jul 06, 2005 11:33 pm
Location: Paris, France
Contact:

Dry flowers

Post by lagroue »

A dry flower pot :

Image

Code: Select all

startshape scene

rule tige2 { 
    SQUARE {  }
    tige2 { x 0.9 y 0.1 r 1 s 0.99 }
} 

rule tige2 { 
    SQUARE {  }
    tige2 { x 0.9 y 0.1 r 5 s 0.99 }
} 

rule tige2 { 
    SQUARE {  }
    tige2 { x 0.9 y 0.1 r -1 s 0.99 }
} 

rule tige2 { 
    SQUARE {  }
    tige2 { x 0.9 y 0.1 r -5 s 0.99 }
} 

rule tige2 0.2 { 
    fleur { x 20 }
    tige2 { }
} 

rule tige2 0.1 { 
    tige { }
}

rule tige {
	SQUARE { }
	tige { x 0.9 s 0.99 }
}

rule tige 0.1{
	tige { b 0.1 }
}

rule tige {
	SQUARE { b 0.2 }
	tige { x 0.9 s 0.99 }
}

rule tige 0.05 {
	tige2 { }
}

rule fleur {
    CIRCLE { s 0.8 b 0.5 }
    CIRCLE { x 1 b 0.7 }
    CIRCLE { x -1 b 0.7 }
    CIRCLE { y 1 b 0.7 }
    CIRCLE { y -1 b 0.7 }
    CIRCLE { x 0.8 y 0.8 s 0.5}
    CIRCLE { x -0.8 y 0.8 s 0.5}
    CIRCLE { x -0.8 y -0.8 s 0.5}
    CIRCLE { x 0.8 y -0.8 s 0.5}
}

rule touffe {
	tige { }
	tige { y 1 r 10}
	tige { y -1 r -10}
	tige { y 2 r 20}
	tige { y -2 r -20}
	touffe { x 5 s 0.9 b 0.1}
}

rule scene {
	touffe { r 90 }
	pot { }
}

rule pot { wait1 { } }
rule wait1 { wait2 { } }
rule wait2 { wait3 { } }
rule wait3 { wait4 { } }
rule wait4 { wait5 { } }
rule wait5 { wait6 { } }
rule wait6 { wait7 { } }
rule wait7 {
	SQUARE { s 5 }
	SQUARE { s 5 x 4}
	SQUARE { s 5 x -4}

	SQUARE { s 9 y -5}

	SQUARE { s 9 y -9}
	SQUARE { s 9 x 2 y -9}
	SQUARE { s 9 x -2 y -9}

	CIRCLE { s 4 x 7 b 1 }
	CIRCLE { s 4 x -7 b 1 }

	CIRCLE { s 3 x 5 y -4}
	CIRCLE { s 3 x -5 y -4 }
}
Last edited by lagroue on Fri Jul 08, 2005 8:20 am, edited 1 time in total.

User avatar
LaT3x
Posts: 68
Joined: Wed Jul 06, 2005 3:11 pm
Location: Madrid, Spain

Post by LaT3x »

Realistic!...
Lovely

pbnj
Posts: 3
Joined: Mon May 28, 2007 12:38 pm

Post by pbnj »

how cute! thanks for sharing. =D

Post Reply