Skip to content

WEBGL background image bug #7917

Open
Open
@saolda

Description

@saolda

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions