arrow

visualife.core.shapes.arrow(drawing, id_str, width, height, tip_width, tip_height=0, **kwargs)

Draws an arrow

Arrow is drawn as SVG path

Parameters:
  • drawing – viewport for drawing
  • id_str – (string) unique ID string for the group containing grid dots
  • width – width of this arrow
  • height – height of this arrow
  • tip_width – width of the bounding rectangle
  • tip_height – height of the tip of this arrow
  • kwargs – see below
Returns:

None

Keyword Arguments:
 
  • cx (value) – center of this arrow - X coordinate (0 by default)
  • cy (value) – center of this arrow - Y coordinate (0 by default)

All other arguments are passed to group construction method of the viewer