I’m trying to figure out if it is possible to use createSprite/makeSprite from the p5.play library and render that on top of a drawing canvas I already have.
Right now I call
drawSprites() inside the
draw() function, and the problem I’m running into is that when I include the background color in
setup(), you can draw (with mousePressed) just fine, but the sprites (which are moved with arrow keys) leave a trail across the page. When the background color is in
draw(), then the sprites no longer leave a trail, but of course the drawings are drawn over with the background.
What is the solution to this? Is there a solution to this? Any help is appreciated