Reducing fractals.

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Guest

Reducing fractals.

Post by Guest »

Is there a way to "fill" the drawing area with a color/shade, so you can use white squares to perform reducing fractals?

Otherwise, is there a way to "invert" the rendered results?

PatternGuru
Posts: 8
Joined: Tue Jul 12, 2005 11:05 am
Location: Netherlands

Post by PatternGuru »

I guess you could draw a large black SQUARE and then draw your actual drawing on top of that using brightness 1. A bit like:

Code: Select all

startshape BACKGROUND

rule BACKGROUND {
	SQUARE [ s 150 b 0 ]
	SCENE [ b 1 ]
}

rule SCENE {
	# Whatever you actually want
	TENDRIL {}
}

rule TENDRIL {
	SQUARE {} 
	TENDRIL { x 1 r 1 s .99 }
}
Problem with that is of course that you never quite know beforehand how large to make the background, but it might give you something to go on.

Post Reply