We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › beginRecord() Example gives error
Page Index Toggle Pages: 1
beginRecord() Example gives error (Read 1328 times)
beginRecord() Example gives error
Dec 15th, 2008, 12:00pm
 
http://processing.org/reference/beginRecord_.html
same with the endRecord() http://processing.org/reference/endRecord_.html

(version 1.0.1, Win XP)

Just copied and pasted it, it gives this error:
Exception in thread "Animation Thread" java.lang.RuntimeException: No set() for PGraphicsPDF

at processing.pdf.PGraphicsPDF.nope(PGraphicsPDF.java:628)
at processing.pdf.PGraphicsPDF.set(PGraphicsPDF.java:490)
at processing.core.PGraphicsJava2D.point(PGraphicsJava2D.java:470)
at processing.core.PApplet.point(PApplet.java:6907)
at sketch_dec15b.draw(sketch_dec15b.java:27)
at processing.core.PApplet.handleDraw(PApplet.java:1406)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Unknown Source)

It works when I replace the point(mouseX, mouseY) with line(0,0,mouseX, mouseY).
Re: beginRecord() Example gives error
Reply #1 - Feb 27th, 2009, 2:55am
 
I've updated the example. Please try it out.

Casey

Page Index Toggle Pages: 1