Skip to content

A simple drawing program using shapes from awt package

Notifications You must be signed in to change notification settings

doppelgunner/ShapeDrawing

Repository files navigation

ShapeDrawing

A simple drawing program using shapes from awt package

Watch youtube demo

Run & Compile

  • Compile - javac -cp ".;ImageTracer.jar;" CartoonDrawing.java
  • Run - java -cp ".;ImageTracer.jar;" CartoonDrawing
  • Compile jar (sample) - jar cvfm CartoonDrawing.jar Manifest.txt -C:/Users/username/Desktop/CartoonDrawing/ .

Important

  • Use data.txt to change the save/load path and image path

Samples (original(far left) - then drawings)

original spiderman sample v1 spiderman drawing sample v2 spiderman drawing original bike sample bike drawing ass in mousepad ass in mousepad drawing

Samples SVG types using ImageTracer

sample v1 spiderman svg drawing sample v2 spiderman svg drawing sample bike svg drawing ass in mousepad svg drawing

Important Controls

  • [F] - toggle draw or fill shape
  • [H] - toggle hide or show image
  • [J] - toggle hide or show drawing
  • [Z] - undo(becareful no redo yet)
  • [Q] - change shape to draw
  • [Mouse Wheel] - stroke of the line of shape
  • [Left click mouse] - draw
  • [middle click mouse] - ctrlPoint1 - for curves
  • [right click mouse] - ctrlPoint2 - for curves
  • [SPACE] - to add shape to memory
  • [S] - save current work(memory) to filepath - replace previous
  • [L] - load from file path previous work
  • [P] - save to png image format
  • [O] - save to svg image format(may produce low quality results)

References