processing / processing/processing-website

beginRaw and endRaw example code does not work

Open
#374 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
90
Forks
122
Avg merge
1h 43m
Merged PRs (30d)
3

Description

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");
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the affected reference pages, beginRaw_.html and endRaw_.html, and trace them to the source for their examples. Confirm how the Processing website stores reference documentation, then update both examples to include P2D and verify that the displayed code matches the proposed working setup.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.