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
gif.getCurrentFrame() shows that it does apply assigned frame to the object.
However, when using image() to render the image, the one in WEBGL environment is still, but the other one works fine with default renderer. (object be placed in another layer without WEBGL using createGraphics())
Snippet:
letgif;letlayer2d;functionpreload(){gif=loadImage('Rotating_earth_(large).gif');}functionsetup(){createCanvas(400,400,WEBGL);layer2d=createGraphics(width,height);}functiondraw(){background(220);letgifFrame=frameCount%(gif.numFrames());gif.setFrame(gifFrame);print(gif.getCurrentFrame());// setFrame() cannot apply to WEBGL environment.image(gif,-200,-200,200,200);// but work fine with default renderer.layer2d.image(gif,0,0,200,200);image(layer2d,0,0);}
The text was updated successfully, but these errors were encountered:
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!
Most appropriate sub-area of p5.js?
p5.js version
1.11.1
Web browser and version
Arc 130.0.6723.117
Operating system
macOS 13.2.1
Steps to reproduce this
Steps:
gif.getCurrentFrame()
shows that it does apply assigned frame to the object.image()
to render the image, the one inWEBGL
environment is still, but the other one works fine with default renderer. (object be placed in another layer withoutWEBGL
usingcreateGraphics()
)Snippet:
The text was updated successfully, but these errors were encountered: