processing / processing/p5.js

[F-REQ] whileLoadingCallback for images

Open
#5,527 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Image Area:IO Enhancement
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Most appropriate sub-area of p5.js?
  • Accessibility (Web Accessibility)
  • Build tools and processes
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Friendly error system
  • Image
  • IO (Input/Output)
  • Localization
  • Math
  • Unit Testing
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)
Feature enhancement details:

Currently, only loadSound() has the whileLoading parameter, and I feel like that should be the same for other file loading functions, like loadImage() or loadXML() etc.

More here.

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 existing whileLoading parameter on loadSound(), then compare the loading APIs for loadImage(), loadXML(), and the other file-loading functions named in the issue. Define which functions should receive the callback and verify that loading progress is exposed consistently across them, using the project’s existing tests for those APIs if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.