-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build Process
- Unit Testing
- Internalization
- Friendly Errors
- Other (specify if possible)
p5.js version
1.6.0
Web browser and version
111.0.5563.64 (Official Build) (arm64)
Operating System
macOS Ventura 13.2.1
Steps to reproduce this
When using image()
to render a video with an alpha channel, pixels from the previous frames are not being cleared.
Steps:
- Export a video with alpha channel using h265 codec (macOS can convert to by right click > encode selected video files)
- Load it in a p5.js script with
createVideo()
- Display it with
image()
- Observe frames not clearing.
Snippet:
- Example of bug when rendering inside canvas: https://editor.p5js.org/araid/sketches/TcKkF4gOb
- The video renders correctly outside canvas (not using
image()
): https://editor.p5js.org/araid/sketches/7beM-GM1k