diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-15 21:40:17 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-15 21:40:17 +0100 |
commit | 5333dc18382ecb0a2286712718ac3b4225fedf64 (patch) | |
tree | 4d1541a9c59c12bf59e552c49f425055f7671593 /client/paintui | |
parent | d3eaceebe43cbb6b85125f73fbef3cf2241fe452 (diff) |
implement stroke operation
Diffstat (limited to 'client/paintui')
-rw-r--r-- | client/paintui/paintui.ha | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/paintui/paintui.ha b/client/paintui/paintui.ha index 212e16b..81fa7ca 100644 --- a/client/paintui/paintui.ha +++ b/client/paintui/paintui.ha @@ -51,8 +51,9 @@ export fn tick( && (mouse_pos.0 != pstate.last_mouse_pos.0 || mouse_pos.1 != pstate.last_mouse_pos.1 || (!pstate.last_mouse_pressed))) - drawing::op_circle { - pos = mouse_pos, + drawing::op_stroke { + pos1 = mouse_pos, + pos0 = (0,0), radius = sizes[pstate.size_idx], color = pstate.color, } |