processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

beginRaw and endRaw example code does not work

Open hx2A opened this issue 4 years ago • 0 comments

Issue description

The example code for beginRaw and endRaw does not work. Those functions are not available for the default renderer.

I'm happy to make a PR for this but someone needs to tell me which file to edit. Is the reference documentation generated from XML files or is that old code and data?

URL(s) of affected page(s)

https://processing.org/reference/beginRaw_.html https://processing.org/reference/endRaw_.html

Proposed fix

Add P2D to the setup() function like this:

void setup() {
   size(400, 400, P2D);
   beginRaw(PDF, "raw.pdf");
}

hx2A avatar Feb 17 '21 18:02 hx2A