-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Background Alpha #1906
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
Comments
Please disregard my issue, I was able to get it to function as stated in the reference documentation. |
I have the same problem about alpha of background(). Below is my code, I don't know what's wrong with it.
|
Hi @arphen, are you trying to draw an image as the background? If so you should use |
I can use |
@arphen You can either directly load in a png image with transparency already baked in or you can go through the |
@limzykenneth from the documentation https://p5js.org/reference/#/p5/background
|
Hi, I'm new to P5 but familiar with Processing, and this issue seems to be existent in both environments. When I use the background() command and apply an alpha, the value doesn't really do anything. According to this link: https://p5js.org/reference/#/p5/background the alpha value is meant to be between 0-100 and apply a level of transparency, but it doesn't seem to work. Regardless what value I put for alpha, I can never get transparency. My workaround for this was to just draw a rectangle in the back and give it a fill color with an alpha value. This issue isn't a priority but would be nice to have it functioning.
All in all great job, P5 & processing are amazing!!
The text was updated successfully, but these errors were encountered: