I’ve been learning to code in Processing.py and was wondering if it’s possible to make a window completely transparent in the python version of processing. I’ve seen a few similar posts such as this one but they all use JFrame which is only for java.
Thanks in advance!
Welcome to the forum!
Take a look at this Processing.py documentation page:
Since Processing.py uses Jython, you should have similar APIs and function names:
With a little bit of exploration I came up with this code:
from javax.swing import JFrame
from com.sun.awt import AWTUtilities
frame = this.surface.getNative().getFrame()
background(255, 0, 0)
circle(width / 2, height / 2, width)
the whole window is transparent and has a little border bug thought