Page 1 of 1

Lines&box

Posted: Fri Jul 15, 2005 10:19 am
by dogfish
This CFDG file creates a kind of box... with lines.

Code: Select all

startshape LINEBOX

rule LINEBOX {
	//comment out the next line for an interesting effect.
	SQUARE { s 70 }
	STRIPES0 { }
	STRIPES0 { r 90 }

}

rule STRIPES0 { 
	SQUARE { b 0.5 s 1 70 x 13 }
	STRIPES { x -2 }
	STRIPES { x 2 }
}

rule STRIPES { 
	SQUARE { b 0.5 s 1 70 }
	STRIPES { x -5 }
	STRIPES { x 8 }
}

rule STRIPES { 
	SQUARE { b 0.25 s 1 70 }
	STRIPES { x -3 }
	STRIPES { x 5 }
}

rule STRIPES { 
	SQUARE { b 0.75 s 1 70 }
	STRIPES { x -2 }
	STRIPES { x 6 }
}

//Change the brightness in this rule to 0, too.
rule STRIPES { 
	SQUARE { b 1 s 1 70 }
	STRIPES { x -6 }
	STRIPES { x 5 }
}

rule STRIPES 5 { }
For a less bugfull design, and just a different generall effect, comment out/change the mentioned lines (not separately, though).