You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first example shows an image; the second one shows a grey canvas:
Snippet:
letimg;functionpreload(){img=loadImage('assets/laDefense.jpg');}functionsetup(){createCanvas(100,100,WEBGL);describe('quad with a texture, mapped using image coordinates');}functiondraw(){texture(img);textureMode(IMAGE);beginShape();vertex(-50,-50,0,0);vertex(50,-50,img.width,0);vertex(50,50,img.width,img.height);vertex(-50,50,0,img.height);endShape();}
The text was updated successfully, but these errors were encountered:
Most appropriate sub-area of p5.js?
p5.js version
1.7.0
Web browser and version
Firefox 114
Operating System
MacOS 12.5.1
Steps to reproduce this
Steps:
Go to the second example here: https://p5js.org/reference/#/p5/textureMode
The first example shows an image; the second one shows a grey canvas:
Snippet:
The text was updated successfully, but these errors were encountered: