Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WEBGL background image bug #7917

Open
Open
@saolda

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:

  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

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /