12,302
edits
(Created page with " →* * Mouse Press. * * Saves one SVG of the contents of the display window * each time the mouse is pressed.: import processing.svg.*; boolean saveOneFrame = fal...") |
m (Max moved page GMU:Actors, Traces, Collectives/Zufall to GMU:Actors, Traces, Collectives/SS17/Zufall: gleicher kurs im WS) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<syntaxhighlight lang="javaScript"> | |||
* | |||
/** | |||
* | * Speichert eine SVG Des Inhalts des Rendering Fensters | ||
* wenn die Maustaste gedrückt wird.. | |||
*/ | */ | ||
| Line 19: | Line 20: | ||
void draw() { | void draw() { | ||
if(saveOneFrame == true) { | if(saveOneFrame == true) { | ||
beginRecord( | beginRecord(SVG, "Muster_"+filenumber+".svg"); | ||
} | } | ||
| Line 38: | Line 39: | ||
filenumber = filenumber +1; | filenumber = filenumber +1; | ||
} | } | ||
</syntaxhighlight> | |||