Using clear() correctly, Magic Leap Example

Hi all, I am working on some examples of using p5js with the Magic Leap One Headset. The Magic Leap comes built in with its own browser called Helios. One of the “tricks” that the browser can do is set basically a transparent body using a meta tag in the html.

This example is just a ball jumping around the screen.

My current example works using the clear tag. I tried using the background with an alpha, but it left a trail of ellipses on the screen. I also tried to see if a png with an alpha would work, but it did not.

My question, am I using the clear function correctly/in its intended use. Is there a more efficient/faster method or way that I am over looking.

Thanks all

1 Like



1 Like