Can anyone please explain the error mask() can only be used with an image that's the same size.? Every time I try to use a Py5Graphics object/image as a mask, I run into that error. But the image loaded is the same pixel size as Py5Graphic object both 200x200px.
cut-out-shapes.py", line 19, in draw
12 def draw():
(...)
15 pg.fill(0)
16 pg.circle(pg.width / 2, pg.height / 2, 150)
17 pg.end_draw()
18
--> 19 img.mask(pg)
20 py5.image(img, 50, 50)
..................................................
pg = Py5Graphics(width=200, height=200)
..................................................
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: mask() can only be used with an image that's the same size.