Implement window methods from Processing4
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Increasing Access
Maintain parity with the Processing API
Most appropriate sub-area of p5.js?
- Core/Environment/Rendering
Feature request details
Processing 4 introduced a number of new window management methods as can be seen in the Beta 5 and Beta 7 release notes (the changes are also mentioned here https://github.com/processing/processing4/issues/53)
windowResize(): resizes the sketch window to the specified dimensionswindowResizable(): defines if the window can be resized by the userwindowMove(): moves the sketch window to the specified x and y coordinateswindowTitle(): set the title of the sketch windowwindowResized(): triggers when the size of the sketch window has changed (this one already exists in p5)windowMoved(): triggers when the sketch window has been movedwindowRatio: set a fixed aspect ratio for the sketch even when the window is resized
As well as the following built-in variables: rwidth, rheight, ratioScale, rmouseX, rmouseY, ratioTop, ratioLeft
Opening this issue so we can discuss which of those should be included in p5.js
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Processing 4 Beta 5 and Beta 7 release notes, then read Processing issue 53 to understand the proposed window-management API. No p5.js file or test is named; the scope must first be decided through the issue discussion. Done means the included methods and variables are agreed before implementation begins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100