weeds!

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
megaduck0
Posts: 13
Joined: Wed Jul 06, 2005 3:36 pm

weeds!

Post by megaduck0 »

I always liked the grassy thing along the bottom of the forum pages, so I thought I'd try to make something like it myself... enjoy!

Code: Select all

startshape Ground

rule Ground { GroundSplitL {} GroundSplitR {} }

rule GroundSplitL { SQUARE{y -0.5} BladeNode{} SizeLeft{} }
rule GroundSplitR { SQUARE{y -0.5} BladeNode{} SizeRight{} }

rule BladeNode { Blade{} }
rule BladeNode { Blade{r 5} }
rule BladeNode { Blade{r -5} }
rule BladeNode 3 { Blade{s 1.5} }

rule SizeLeft 0.5 { MoveLeft{s 0.96} }
rule SizeLeft 0.05 { MoveLeft{s 1.2} }
rule SizeLeft 1.0 { MoveLeft{} }

rule SizeRight 0.5 { MoveRight{s 0.96} }
rule SizeRight 0.05 { MoveRight{s 1.2} }
rule SizeRight 1.0 { MoveRight{} }

rule MoveLeft 0.5 { GroundSplitL{x -0.5} }
rule MoveLeft 1.0 { GroundSplitL{x -1} }
rule MoveLeft 0.05 { GroundSplitL{x 0.5} }

rule MoveRight 0.5 { GroundSplitR{x 0.5} }
rule MoveRight 1.0 { GroundSplitR{x 1} }
rule MoveRight 0.05 { GroundSplitR{x -0.5} }

rule Blade 8 { CircleLine{} Blade{s 0.96 y 1} }
rule Blade 2 { Blade{s 0.95 r -5 } }
rule Blade 2 { Blade{s 0.95 r 5 } }
rule Blade {BladeL{}}
rule Blade {BladeR{}}

rule BladeL 8 { CircleLine{} BladeL{y 1} }
rule BladeL 2 { BladeL{s 0.95 r 5 } }
rule BladeL 0.5 { BladeL{s 0.6 r 15} BladeL{s 0.6 r -15} }
rule BladeL 0.5 { BladeL{r 0 b 0.06} BladeL{s 0.4 r -35} }
rule BladeL 0.5 { BladeL{r -0 b 0.06} BladeL{s 0.4 r 35} }
rule BladeL 0.2 { BladeSeed{s 1.3} }
rule BladeL { BladeR{} }

rule BladeR 8 { CircleLine{} BladeR{y 1} }
rule BladeR 2 { BladeR{s 0.95 r -5 } }
rule BladeR 0.5 { BladeR{s 0.6 r 15} BladeR{s 0.6 r -15} }
rule BladeR 0.5 { BladeR{r 0 b 0.06} BladeR{s 0.4 r -35} }
rule BladeR 0.5 { BladeR{r -0 b 0.06} BladeR{s 0.4 r 35} }
rule BladeR 0.2 { BladeSeed{s 1.3} }
rule BladeR { BladeL{} }

rule BladeSeed { OneSeed{r -20} BladeSeed {s 0.92 r 5 y 0.7} }
rule BladeSeed { OneSeed{r 20} BladeSeed {s 0.92 r -5 y 0.7} }

rule OneSeed { CIRCLE{} OneSeed{s 0.90 y 0.25 r 2} }
rule OneSeed { CIRCLE{} OneSeed{s 0.90 y 0.25 r -2} }

rule CircleLine {
	CIRCLE{s 0.75}
	CIRCLE{y 0.33 s 0.75}
	CIRCLE{y 0.66 s 0.75}
}


Sendell
Posts: 5
Joined: Thu Jul 07, 2005 5:10 am
Location: Belgium

Post by Sendell »

Thanks, I wanted something like that too.

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

Post by LaT3x »

Really lovely

ShaggyStyle
Posts: 4
Joined: Fri Jul 08, 2005 4:05 pm

Post by ShaggyStyle »

Playing with your code and a little bit of Corel Photopaint...

Image

I love what can be done with ContextFree :D

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

Post by pbnj »

nicely done! thanks for sharing! =D

Post Reply