Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.05 KB

Vector Drawing Package Using Java

Functionality

  • Allows user to draw lines, squares, rectangles, circles, ellipses or triangles.
  • User can choose whether to a fill shape or not.
  • The colour can be set before drawing to allow for shapes of any colour.
  • User can clear the canvas.
  • Multiple undo/redo can be performed to restore changes.
  • User can save the drawing in any filename they want (files are set to be saved in the src folder by default).
  • User can load a previous drawing from the src folder after specifying the name of the file they want to load.
  • Images can be imported and then dragged onto canvas at any time after clicking add.
  • Imported images added are scaled based on the magnitude of the mouse drag.

Demonstration of program

Program demonstration


How to compile and run in terminal

  • First make sure you are in the src folder.
  • Now type javac Main.java to compile and then java Main to run.