Exporting SVG using 3.01 new feature

edited December 2015 in Questions about Code

I'm trying to use the new SVG export feature. This is the test

import processing.svg.*;

void setup() { size(400, 400); beginRecord(SVG, "everything.svg"); }

void draw() { ellipse(mouseX, mouseY, 10, 10); }

void mousePressed() { endRecord(); exit(); }

It should produce a number of circles, but only produces a single circle. I've tried running it in PDF mode (changing SVG to PDF in the above) and it produces the correct result. If i change the draw() section to

ellipse(10,10,20,20); ellipse(20,20,20,20); ellipse(30,30,20,20);

it produces the three ellipses properly, so, the problem appears to occur in the handing of the mouseX/Y.

I'm a software developer new to Processing and looking for suggestions on how to debug this. Since i'm new to Processing, any help will be gratefully received.

Also, as a secondary issue, i would like to learn how to build/develop Processing so that i might contribute bug fixing. Any pointers to the process would be appreciated.


Sign In or Register to comment.