Repository navigation
Camden's Pain(t) Version 0.4.0 - 10/04/2026
New features
- Undo and Redo (Ctrl+Z / Ctrl+Y), built on two stacks (UndoHistory), capped at 40 steps per tab
- Blank starting image and a Clear Canvas tool with an "are you sure" check
- Star shape
- Regular polygon with any number of sides (3 to 100)
- Right triangle (right angle at the press point)
- Select tool: select, move, copy, cut and paste a piece of the image, with live preview
- Text tool: place user-typed text with a live preview
- Tabs and git as in earlier sprints
Notes
- Selection outline is drawn on a separate layer, so it never ends up in saved files
- Each move, paste or text placement is one undo step
- A pasted piece appears just down and right of the original, already selected, so it can be dragged into place
Known issues
- Selection is rectangle only; placed text cannot be edited or moved (undo and redo it)
- Text uses the default font only
- Undo history is lost when a tab is closed
Critique
The program does everything the Sprint 4 list asks for and the features work. ShapeDrawer, UndoHistory and ToolSettings are small and each do one job. The weak spot is ImageCanvasTab.java (about 800 lines), which mixes file saving, mouse handling and selection logic and should be split up. I need to add more files to the program.