Page 1 of 1

Context Free vs Algorithm Ink differences

Posted: Wed Oct 22, 2008 3:52 pm
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.

Posted: Wed Oct 22, 2008 8:42 pm
by MtnViewJohn
The MOUSECLICK and MOUSEMOVE rules are features of Algorithmic Ink only, Context Free does not have those features. If anyone did a Context Free plug-in for Photoshop or Gimp then that would be a great feature to have.

Posted: Thu Oct 23, 2008 5:11 pm
by ClenchedTeeth
Oh ok. So I guess my chances of getting a vector output with mouseclicks are pretty low then. You're right, if someone wrote those plugins that would kick ass! Thanks for your help!