From 5333dc18382ecb0a2286712718ac3b4225fedf64 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 15 Apr 2024 21:40:17 +0100 Subject: implement stroke operation --- client/paintui/paintui.ha | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/paintui/paintui.ha') 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, } -- cgit v1.2.3