Context Free vs Algorithm Ink differences

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

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
ClenchedTeeth
Posts: 2
Joined: Tue Oct 21, 2008 5:27 pm

Context Free vs Algorithm Ink differences

Post by ClenchedTeeth »

Apologies in advance if his is a stupid question:
I had a play with algorithm ink (http://azarask.in/projects/algorithm-ink/#e0274a5c) and loved it so I downloaded context free for my laptop. I immediately took my favourite piece of code from algorithm ink and plugged it into the standalone program on my laptop:

Code: Select all

startshape scale

rule scale{ 
	SPIKES{ s .001 }
}

rule SPIKES {
	SPIKE {}
	SPIKE { r 90 }
	SPIKE { r 180 }
	SPIKE { r 2000 }
}

rule SPIKE {
	LSPIKE {}
}
rule SPIKE {
	LSPIKE { flip 90 }
}

rule LSPIKE {
	SQUARE {}
	LSPIKE { y 0.98 s 0.99 r 1}
}
rule LSPIKE 0.005 {
	SPIKE { r 90 }
	SPIKE { r -90 }
	LSPIKE { y 0.98 s 0.99  r 1}
}

rule MOUSECLICK{
  SPIKES{ s .025 }
}
When I run this on algorithm ink it spawns a new shape with every mouse click, while in the standalone program it just spawns one shape when I hit 'render'.
Why does this difference exist? How can I get the standalone app to draw a new shape with a mouseclick?
Thanks in advance for any replies.

Post Reply