svgen.shapes package#

Submodules#

svgen.shapes.chip module#

A module for adding circuit chips to SVG documents.

svgen.shapes.chip.add_chip(box: Rectangle, body_color: str = 'black', pin_color: str = 'gray', circle_color: str = None, pin_count: int = 3, debug: bool = False) Tuple[List[Element], Rect][source]#

Add a circuit chip to the document based on the provided rectangle and other configurations.

svgen.shapes.pins module#

A module for adding pin elements to circuit chips.

svgen.shapes.pins.add_pins(rect: Rect, count: int, color: str) List[Element][source]#

Add some number of pins to a rectangle.

Module contents#