Eyedropper
This commit is contained in:
parent
b5cac2ac8d
commit
d727c75fea
1 changed files with 14 additions and 1 deletions
15
pixler.bas
15
pixler.bas
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue