Eyedropper

This commit is contained in:
visionmercer 2026-05-04 12:37:19 +02:00
commit d727c75fea

View file

@ -276,7 +276,20 @@ sub canvas
_source 0 _source 0
exit sub exit sub
end if 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 state.tool = 7 or state.tool = 8 then
if mouseclicked then if mouseclicked then
polypoints(pointCount * 2) = canX polypoints(pointCount * 2) = canX