Color two side of a custom shape

How I can use two colors for two sides (top,inner) of a custom shape.

From my 1st attempt on multicolor w/ shapes on “p5.js” I believe it’s not currently possible: :grimacing:

For now you can at least code in “Java Mode / Pjs” for that multicolor effect: :woozy_face:

@GoToLoop thanks for the reply I thought the same. I couldn’t find any source for two side color for a Vertex. So I tried a work around
by duplicating same vertex with 1px. But its not working as expected while converting points to 3D object.

Please check the codepen demo