processing / processing/p5.js

Implement window methods from Processing4

Open
#5,836 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Core Feature Request
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 dimensions
  • windowResizable(): defines if the window can be resized by the user
  • windowMove(): moves the sketch window to the specified x and y coordinates
  • windowTitle(): set the title of the sketch window
  • windowResized(): triggers when the size of the sketch window has changed (this one already exists in p5)
  • windowMoved(): triggers when the sketch window has been moved
  • windowRatio: 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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.