Let's try to understand the OpenGL triangle - aka OpenGL Hello World! We will use WebGL for simplicity, but the principles are quite similar to OpenGL.
See the Pen Understanding the OpenGL triangle by ValYouW (@ValYouW) on CodePen.