-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background with alpha unexpected behavior #7065
Comments
Hi! Unfortunately this isn't an issue p5 is able to fix, as it is an issue with the data representation of all js canvases. The first issue is that the color doesn't get reduced by 5/255 each frame. Instead, it's something closer to So, some workarounds:
|
Most appropriate sub-area of p5.js?
p5.js version
1.9.3
Web browser and version
Brave ( chrome ) 1.66.110 Chromium: 125.0.6422.60 (Official Build) (64-bit)
Operating system
Windows/MacOSX
Steps to reproduce this
Actual Behavior
for alpha values < 25 in background some shapes are never fully overwritten
ie: background(0,5) has the issue
background(0,25) does not
Expected Behavior
any shape after a certain amount of frames depending on its color should be wiped away by enough overlays no matter how small the transparency
Steps to reproduce
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: