Most appropriate sub-area of p5.js?
p5.js version
2.2.3
Web browser and version
All
Operating system
All
Steps to reproduce this
Steps:
- Load an image
- Create a WebGL canvas
- Call
noTint()
- Draw the image
It throws an error, can't access property "slice", data is null.
Snippet:
async function setup() {
createCanvas(400, 400, WEBGL);
img = await loadImage('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Bengal_tiger_in_Sanjay_Dubri_Tiger_Reserve_December_2024_by_Tisha_Mukherjee_15.jpg/1280px-Bengal_tiger_in_Sanjay_Dubri_Tiger_Reserve_December_2024_by_Tisha_Mukherjee_15.jpg')
// Works when commented out
noTint()
imageMode(CENTER)
image(img, 0, 0, width, height)
}
https://editor.p5js.org/davepagurek/sketches/aQs20UfMC
Most appropriate sub-area of p5.js?
p5.js version
2.2.3
Web browser and version
All
Operating system
All
Steps to reproduce this
Steps:
noTint()It throws an error,
can't access property "slice", data is null.Snippet:
https://editor.p5js.org/davepagurek/sketches/aQs20UfMC