We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Accidentally made this a discussion earlier, but is it possible to make an image transparent? My plan is to have the image become transparent after being clicked on.
Is this java or js? You should be able to call clear():
https://processing.org/reference/clear_.html [NOTE: load your image into a PGraphics]
https://p5js.org/reference/#/p5/clear
You should also cross-link your posts and please avoid duplicate post when working in the same topic. It makes things confusing.
Kf
Completely transparent (invisible) or partly transparent (low alpha)?
completely transparent @jeremydouglass but I figured out another solution to my problem
ok @kfrajer thanks
@Student1234 -- for "completely transparent" just don't draw it at all.
boolean img1on; PImage img1; ... if(img1on){ image(img1,0,0); } ... void mouseClicked(){ img1on = false; }
Answers
Is this java or js? You should be able to call clear():
https://processing.org/reference/clear_.html [NOTE: load your image into a PGraphics]
https://p5js.org/reference/#/p5/clear
You should also cross-link your posts and please avoid duplicate post when working in the same topic. It makes things confusing.
Kf
Completely transparent (invisible) or partly transparent (low alpha)?
completely transparent @jeremydouglass but I figured out another solution to my problem
ok @kfrajer thanks
@Student1234 -- for "completely transparent" just don't draw it at all.