This program is an interactive text-based drawing tool that allows users to create, modify, and display simple images on a customizable canvas. Users begin by specifying the canvas dimensions (max 100x100), with built-in input validation to ensure robustness. The program features a menu with eight options: drawing points, lines, and rectangles, erasing, resizing the canvas, and displaying the current or final image.
Key functionalities are encapsulated in well-structured, dedicated functions to maintain code readability and modularity. Input handling is managed through utility functions that ensure user-friendly error messages and prevent crashes. Drawing and editing features are implemented using loops and conditional logic, allowing precise control over the canvas content. The canvas can be resized at any time, with existing artwork preserved when possible.
Knowledge gained from this project:
Array logic and manipulation
Interactive applications
Function-based design
Input handling