electRadiusSq = selectRadius * selectRadius;
  let locked = true;

  const colors = [
    "#00F",
    "#888",
    "#000",
    "#00F",
    "#000",
    "#888",
    "#00F",
  ];

  let points = [
    [-130,  90],
    [ -55, -90],
    [ -25, -60],
    [   0,   0],
    [  35,  60],
    [  65,  90],
    [ 130, -90],
  ];

  function render() {
    webglUtils.resizeCanvasToDisplaySize(ctx.canvas, window.devicePixelRatio);

    ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
    ctx.save();
    ctx.transl