code: func (c *Canvas) SetPixels(pixels []uint8) {
  	c.gf.Dirty()
  
  	mainthread.Call(func() {
  		tex := c.Texture()
  		tex.Begin()
  		tex.SetPixels(0, 0, tex.Width(), tex.Height(), pixels)
  		tex.End()
  	})
  }
docs: // SetPixels replaces the content of the Canvas with the provided pixels. The provided slice must be
  // an alpha-premultiplied RGBA sequence of correct length (4 * width * height).