Skip to content

WEBGL background image bug #7917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 17 tasks
saolda opened this issue Jun 17, 2025 · 1 comment
Open
1 of 17 tasks

WEBGL background image bug #7917

saolda opened this issue Jun 17, 2025 · 1 comment

Comments

@saolda
Copy link

saolda commented Jun 17, 2025

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:

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

@saolda saolda added the Bug label Jun 17, 2025
Copy link

welcome bot commented Jun 17, 2025

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant