Commit Graph

115 Commits

Author SHA1 Message Date
Isaiah Odhner
43b827720b Use Bresenham's line algorithm 2023-04-10 22:24:22 -04:00
Isaiah Odhner
f6e9d6676e Capture the mouse when drawing on the canvas 2023-04-10 22:16:50 -04:00
Isaiah Odhner
f4eb6eb1f0 Add bounds checks 2023-04-10 22:16:33 -04:00
Isaiah Odhner
61a25a85bf Rename width/height properties 2023-04-10 22:07:25 -04:00
Isaiah Odhner
8168ef78a3 Fix timing of update_canvas on mouse down 2023-04-10 22:03:31 -04:00
Isaiah Odhner
42ae61c9ab Add color support to the canvas, very inefficiently 2023-04-10 21:51:26 -04:00
Isaiah Odhner
ffca83c1c6 Support drawing, basically 2023-04-10 21:30:11 -04:00
Isaiah Odhner
69ca7eefdb Add a Canvas widget 2023-04-10 21:25:31 -04:00
Isaiah Odhner
b64869eae4 Let buttons fall back to the original color when deselected 2023-04-10 20:52:01 -04:00
Isaiah Odhner
3f8a652fe2 Implement selected_tool state 2023-04-10 19:27:11 -04:00
Isaiah Odhner
6ecdfe3532 Move tool buttons into a ToolsBox container and improve layout 2023-04-10 18:21:09 -04:00
Isaiah Odhner
43169d7df2 Make buttons gray instead of blue 2023-04-10 17:46:08 -04:00
Isaiah Odhner
99fcda2c53 Remove calculator logic/UI 2023-04-10 17:40:59 -04:00
Isaiah Odhner
ad4c94097a Add buttons for Paint tools 2023-04-10 17:29:04 -04:00
Isaiah Odhner
642bf3812c Rename calculator -> paint 2023-04-10 16:54:36 -04:00