PDF export problem

edited November 2016 in How To...

Hi folks, can anyone suggest me a way to save a single frame in pdf mode based on the actual state of the display window without saving all the anchor points generated by the previous frames? The problem is that the background() function is called only in the setup(), so if I save the last frame as pdf, Processing will skips all the previous frames while, if I save all the frames indeed, Processing will creates an anchor point for each animation, so it'll creates a too large file that adobe illustrator, couldn't open. Is there a way to save in pdf only the last frame in an animation?

p.s.: sorry for my bad english.

Tagged:

Answers

  • Is there a way to save in pdf only the last frame in an animation?

    For us to help, it will be necessary to see the code. It will be even easier if you post a reduce sample code so anybody can follow it easily. Now, if you know when the last frame is being executed, then I would think an if statement will do what you want. Next is a sample code layout showing a possible approach:

    Kf

    void draw(){
    
      (...)  OTHER DRAW LINES
    
      if( last_animation_frame){
        saveFrame();
      }
    }
    
Sign In or Register to comment.