processing / processing/p5.js-web-editor

load image URLs do not work with interpolation ticks

Open
#2,257 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Feature Request
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

p5.js version

1.6.0

What is your operating system?

Mac OS

Web browser and version

114.0.5735.106

Actual Behavior

Load image function fails when using string interpolation

Expected Behavior

It should evaluate the string before loading the image

Steps to reproduce

https://editor.p5js.org/tansan/sketches/yg1JrIb8b

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 with the linked p5.js Editor reproduction and trace the image-loading entry point used by the sketch. Verify how an interpolated string is passed to the loader, then confirm that the URL is evaluated before loading and that the reproduction succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.