;

const colorFS = `#version 300 es
precision highp float;

uniform vec4 u_color;

out vec4 outColor;

void main() {
  outColor = u_color;
}
`;

function main() {
  // Get A WebGL context
  /** @type {HTMLCanvasElement} */
  const canvas = document.querySelector('#canvas');
  const gl = canvas.getContext('webgl2');
  if (!gl) {
    return;
  }

  // setup GLSL programs
  const textureProgramInfo = twgl.createProgramInfo(gl, [vs, fs]);
  const colorProgramInfo = twgl.createProgramInfo(gl, [colorVS, colorFS])