We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have been using contour maps and was having trouble correctly layering different calls of stroke() and fill().
For instance, I draw a bunch of strokes that surround an island and then I want to fill in the contour with a green land. However, this fill() is always drawn underneath the other strokes, to my dismay, and I have not figured out how to make sure that stays on top even though it comes after the stroke.
Is there any way to achieve this?
Answers
Making this a P2D sketch eliminates the problem. But I need a P3D setup because I use Syphon in the final application. I am wondering how to possibly use a z-posiiton for the points...
So using a translate in combination with a push/pop matrix call I was able to sort the shapes and not get anything to shine through.