When using beginShape + endShape, there is 'residue' from vector images previously loaded
in
Android Processing
•
2 years ago
In my app I'm loading vector images for icons and a logo. After I load these images, I use beginShape and endShape with some curveVertex 's between them to draw unrelated graphics programmatically. Even without anything between beginShape and endShape, I still get remains from the vector images I previously loaded when using these functions. In the first picture you can see what happens when I try to draw the curved line on the right after loading the logo on the top left.
The residue is the bracket looking shape on the left.
In this picture, I draw the curved line after drawing the two icons on the left. As you can see, there is a lot more residue from these two icons, for some reason.
Here is my main class, and the curved line in question is drawn in 'drawElementDock()'. The logo is loaded in that class as well.
I thought I would also include the class where the two icons are loaded.
So I'm not really sure if this is a bug or I'm doing something wrong, but any help would be appreciated! I should also point out that I only tested the code on my Android phone so far.
1