From d727c75feac50294856ac511508bdda1711eaf85 Mon Sep 17 00:00:00 2001 From: visionmercer <62051836+visionmercer@users.noreply.github.com> Date: Mon, 4 May 2026 12:37:19 +0200 Subject: [PATCH] Eyedropper --- pixler.bas | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pixler.bas b/pixler.bas index f048983..cedc679 100644 --- a/pixler.bas +++ b/pixler.bas @@ -276,7 +276,20 @@ sub canvas _source 0 exit sub end if - + + if state.tool = 10 and (mouseclicked or rmouseclicked) then + _dest layers(1).ihandle + _source layers(1).ihandle + if mouseclicked then + state.fcolor=point(canX,canY) + else + state.bcolor=point(canX,canY) + end if + _dest 0 + _source 0 + exit sub + end if + if state.tool = 7 or state.tool = 8 then if mouseclicked then polypoints(pointCount * 2) = canX