class_docstr: Displays a 2D rectangle with optional rounded corners
  
  Parameters
  ----------
  center :  array
      Center of the rectangle
  color : instance of Color
      The fill color to use.
  border_color : instance of Color
      The border color to use.
  border_width : int
      Border width in pixels.
      Line widths > 1px are only
      guaranteed to work when using `border_method='agg'` method.
  height : float
      Length of the rectangle along y-axis
      Defaults to 1.0
  width : float
      Length of the rectangle along x-axis
      Defaults to 1.0
  radius : float | array
      Radii of curvatures of corners in clockwise order from top-left
      Defaults to 0.
  **kwargs : dict
      Keyword arguments to pass to `PolygonVisual`.
class_docstr_tok: ["Displays","a","2D","rectangle","with","optional","rounded","corners","Parameters","--","--","--","--","--","center",":","array","Center","of","the","rectangle","color",":","instance","of","Color","The","fill","color","to","use",".","border_color",":","instance","of","Color","The","border","color","to","use",".","border_width",":","int","Border","width","in","pixels",".","Line","widths",">","1px","are","only","guaranteed","to","work","when","using","`","border_method='agg","'","`","method",".","height",":","float","Length","of","the","rectangle","along","y-axis","Defaults","to","1.0","width",":","float","Length","of","the","rectangle","along","x-axis","Defaults","to","1.0","radius",":","float","|","array","Radii","of","curvatures","of","corners","in","clockwise","order","from","top-left","Defaults","to","0",".","*","*","kwargs",":","dict","Keyword","arguments","to","pass","to","`","PolygonVisual","`","."]
docstr: The width of the rectangle.
docstr_tok: ["The","width","of","the","rectangle","."]
code: def width(self):
      """The width of the rectangle."""
      return self._width
  
file_path: vispy/vispy/visuals/rectangle.py
imports: from __future__ import division
  import numpy
  from ..color import Color
  from .polygon import PolygonVisual
label_desc: Use image node_id 7 for calling the RectangleVisual obj's underlying member method code with example usage: obj.width() and returns: self