The shapes
The trick
The GPU only knows how to paint triangles. The primitive tells it how to read the vertex list:
three at a time, as a strip (each new vertex closes a triangle with the two before it) or as a
fan (they all share the first one). With "Points" you see the vertices just as they are in the
buffer.
Made with
WebGL with no 3D library: a vertex shader that projects each vertex with a 45° perspective, a
fragment shader with one color per shape, and gl-matrix to move each shape into place.