topical media & game development

talk show tell print

graphic-processing-learning-21-example-21-1-example-21-1.pde / pde



  // Learning Processing
  // Daniel Shiffman
  // http://www.learningprocessing.com
  
  // Example 21-1: Basic PDF
  
  // Import the library
  import processing.pdf.*;
  
  // Using " PDF " mode, 4th argument is the name of the file
  size(400, 400, PDF, "filename.pdf" );
  
  // Draw some stuff!
  background(255);
  fill(175);
  stroke(0);
  ellipse(width/2,height/2,160,160);
  
  // Very important, required for the PDF to render properly
  exit();
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.