code: function triangleDraw(c, params)
  {
      const size = params.size
      const half = params.size / 2
      c.beginPath()
      c.fillStyle = '#' + params.color.toString(16)
      c.moveTo(half, 0)
      c.lineTo(0, size)
      c.lineTo(size, size)
      c.closePath()
      c.fill()
      c.fillStyle = 'white'
      c.font = '40px Arial'
      const measure = c.measureText(n)
      c.fillText(n++, size / 2 - measure.width / 2, size / 2 + 10)
  }
docs: draw a triangle to the render sheet using canvas