docstr: Translates the center point, and keeps it in bounds.
docstr_tok: ["Translates","the","center","point",",","and","keeps","it","in","bounds","."]
code: def translate_center(self, dx, dy):
      """Translates the center point, and keeps it in bounds."""
      center = self.center
      center[0] -= dx
      center[1] -= dy
      center[0] = min(max(center[0], self.bounds[0]), self.bounds[1])
      center[1] = min(max(center[1], self.bounds[0]), self.bounds[1])
      self.program["center"] = self.center = center
  
file_path: vispy/examples/demo/gloo/mandelbrot.py
imports: from vispy import app, gloo
label_desc: Use image node_id 6 for calling the Canvas obj's underlying member method code with example usage: obj.translate_center(dx, dy) without return types