class_docstr: Visual subclass to display 2D pixel-width borders.
  
  Parameters
  ----------
  pos : tuple (x, y)
      Position where the colorbar is to be placed with
      respect to the center of the colorbar
  halfdim : tuple (half_width, half_height)
      Half the dimensions of the colorbar measured
      from the center. That way, the total dimensions
      of the colorbar is (x - half_width) to (x + half_width)
      and (y - half_height) to (y + half_height)
  border_width : float (in px)
      The width of the border the colormap should have. This measurement
      is given in pixels
  border_color : str | vispy.color.Color
      The color of the border of the colormap. This can either be a
      str as the color's name or an actual instace of a vipy.color.Color
class_docstr_tok: ["Visual","subclass","to","display","2D","pixel-width","borders",".","Parameters","--","--","--","--","--","pos",":","tuple","(","x",",","y",")","Position","where","the","colorbar","is","to","be","placed","with","respect","to","the","center","of","the","colorbar","halfdim",":","tuple","(","half_width",",","half_height",")","Half","the","dimensions","of","the","colorbar","measured","from","the","center",".","That","way",",","the","total","dimensions","of","the","colorbar","is","(","x","-","half_width",")","to","(","x","+","half_width",")","and","(","y","-","half_height",")","to","(","y","+","half_height",")","border_width",":","float","(","in","px",")","The","width","of","the","border","the","colormap","should","have",".","This","measurement","is","given","in","pixels","border_color",":","str","|","vispy.color.Color","The","color","of","the","border","of","the","colormap",".","This","can","either","be","a","str","as","the","color","'s","name","or","an","actual","instace","of","a","vipy.color.Color"]
code: def _prepare_transforms(view):
      program = view.shared_program
      program.vert["visual_to_doc"] = view.transforms.get_transform(
          "visual", "document"
      )
      program.vert["doc_to_render"] = view.transforms.get_transform(
          "document", "render"
      )
  
file_path: vispy/vispy/visuals/border.py
imports: import numpy
  from .None import Visual
  from ..color import Color
label_desc: Use image node_id 2 for calling the _BorderVisual obj's underlying member method code with example usage: obj._prepare_transforms(view) without return types