I made a small program using shape and it failed. So went to the examples, comes open with ‘Android Examples’ selected Topics, Create Shapes. PolygonPShapeOOP3. Ran that but it failed with:
OpenGL error 1280 at bot beginDraw(): invalid enum
So I removed the ‘P2D’ and it goes further but fails with:
Process: processing.test.polygonpshapeoop3_and2, PID: 27734
java.lang.ArrayIndexOutOfBoundsException: src.length=2 srcPos=0 dst.length=37 dstPos=0 length=37
at java.lang.System.arraycopy(Native Method)
If I remove the ‘shape(s);’ on line 30 of the Polygon tab the program runs without crashing but obviously the shapes don’t display.
Does shape work on Android?
Is there a list of what works/doesn’t for Android as compared with PC? (I’ve seen that G4P doesn’t.)
Do all the examples usually work?