i have this code for a very simple patch. I need export to pdf 'cause i need the hi resolution possible to print it...
But when i push the button the pdf is empty...without image!! how can i resolve!!!? and how can i take all screen like a screenshot?
tnx!
________________________________________
int nPoints = 4096; // points to draw
float complexity = 1; // wind complexity
float maxMass = .9; // max pollen mass
float timeSpeed = .0001; // wind variation speed
float phase = TWO_PI; // separate u-noise from v-noise
float windSpeed = 12; // wind vector magnitude for debug
int step = 1; // spatial sampling rate for debug
float[] pollenMass;
float[][] points;
boolean debugMode = false;
import fullscreen.*;
FullScreen fs;
import processing.pdf.*;
boolean saveOneFrame = false;
void setup() {
size(1280, 200, P2D);
fs = new FullScreen(this);
// enter fullscreen mode
fs.enter();
points = new float[nPoints][2];
pollenMass = new float[nPoints];
for(int i = 0; i < nPoints; i++) {
points[i] = new float[]{random(0, height), random(.1, width)};