Loading...
Logo
Processing Forum
hi , im using this sketch


so i want to press play , start writing , and that it saves the images as a sequence.


so i put 
save("cross.tga");


at the end of the ShapeSpringVII tab.



but i get this error  :


unexpected token: "cross.tga"


any ideas ?

thanx !!!   
 

Replies(6)

What do you call "at the end of the ShapeSpringVII tab" exactly? Such instruction must be in a function definition.
well , i put this :

save("cross.tga");

right at the end of the ShapeSpringVII tab
like this :




i've been a bit away from processing , i dont remember how should i really use the save function.

do i have to use a conditional to use it.

or how do i just save what i do while i draw in the program ?

thanx !!!
Sorry for not saying anything useful but, LOL this made my day :)
To quote myself:
Such instruction must be in a function definition.
The keyReleased() method is a good place for it, since you can trigger the save upon a key pressed (just add another case).
why did it make your day ?  did you like the sketch ? its awesome he ?
fixed iz , i had to put it inside draw.