Display square image as circle image

So I load a square image, but I want it displayed as a circle image, how could I do this easily? (like just cut of the corners with transparency, width stay the same but just rounded)

perhaps mask is what you are looking for
https://p5js.org/reference/#/p5.Image/mask

2 Likes