code: def __init__(self):
      app.Canvas.__init__(self, size=(W, H), keys="interactive")
  
      self._internalformats = ["rgb8", "rgb16", "rgb16f", "rgb32f"]
  
      self.program = gloo.Program(vert_shader, frag_shader)
      self.program.bind(gloo.VertexBuffer(quad))
      self._internalformat = -1
      self.texture = gloo.Texture2D(
          shape=(H, W, 3), interpolation="nearest"
      )
  
      gloo.set_viewport(0, 0, *self.physical_size)
  
      self.toggle_internalformat()
  
      self.show()
  
file_path: vispy/examples/gloo/texture_precision.py
imports: import numpy
  from vispy import gloo
  from vispy import app
label_desc: Use image node_id 1 to create a new Canvas object from inherited base classes: app with example: obj = Canvas()