Open
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- p5.strands
- WebGL
- DevOps, Build process, Unit testing
- Internationalization (i18n)
- Friendly Errors
- Other (specify if possible)
p5.js version
1.4.0
Web browser and version
137.0.7151.104 (Official Build) (64-bit) (cohort: Stable)
Operating system
Windows
Steps to reproduce this
Steps:
- Works fine without WEBGL turned on.
Snippet:
function setup() {
createCanvas(400, 400, WEBGL);
//loadImage('./imgs/asteroidTexture.avif');
test = new Test();
}
class Test{
constructor(){
this.background = './imgs/asteroidTexture.avif';
this.loadedBackground = loadImage(this.background);
background(this.loadedBackground);
}
}
Console: Error: [object Arguments]is not a valid color representation.