draw
Draw circles, rectangles, or lines on the Packet Tracer canvas to ring subnets, frame areas, or mark boundaries, with custom outline and fill colors. Returns an ID for later removal.
Instructions
Draw on the logical canvas: a circle (centre and radius) around a subnet or group, a rectangle (two corners) to frame an area, or a line to mark a boundary. color is the outline (red, blue, green, ... or #rrggbb); fill fills circles and rectangles. The drawing is written into the network file, which Packet Tracer reopens from a temporary copy; save with a path to keep it. Returns the id remove_drawing takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Circle: the centre. Rectangle: one corner. Line: where it starts. Canvas coordinates, as in `add_device`. | |
| y | Yes | ||
| fill | No | Circle and rectangle: fill them with this colour, named or `#rrggbb`. Left unfilled when omitted. | |
| to_x | No | Rectangle: the opposite corner. Line: where it ends. | |
| to_y | No | ||
| color | No | Outline colour: `red`, `orange`, `yellow`, `green`, `blue`, `purple`, `gray`, `black`, `white`, or a `#rrggbb` value. Defaults to blue. | |
| shape | No | `circle` (default), `rectangle` or `line`. | circle |
| radius | No | Circle: its radius. Defaults to 60. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| file | Yes | The temporary copy Packet Tracer now has open: drawings go through the network file. Your own file is untouched: save with `save_network` and a path to keep the drawing there. | |
| fill | No | ||
| color | Yes | ||
| shape | Yes |