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