RectanglePath

ipkiss3.all.RectanglePath(layer, center=(0.0, 0.0), box_size=(1.0, 1.0), line_width=1.0)

Returns a Path Element along a a closed rectangular shape.

Parameters:
layer: Layer object, required

Layer on which the shape is drawn

centerCoord2 or tuple

center of the rectangle. Defaults to (0.0, 0.0)

box_sizeCoord2 or tuple of positive numbers

Box size in which the rectangle should fit.

line_widthpositive number

line_width of the path.

Returns:
Path element.