Better floodfill

This commit is contained in:
visionmercer 2026-05-04 09:01:12 +02:00
commit 8037406b33
2 changed files with 62 additions and 99 deletions

View file

@ -180,8 +180,8 @@ sub canvas
if _mousex > boxX1 then
' Start Drawing Logic
if state.tool = 9 and (mouseclicked or rmouseclicked) then
_dest layers(2).ihandle
_source layers(2).ihandle
_dest layers(1).ihandle
_source layers(1).ihandle
if mouseclicked then
floodfill canX,canY,state.fcolor
else
@ -230,7 +230,7 @@ sub canvas
thickline state.startX, canY, state.startX, state.startY, drawCol
case 6 ' Filled Rect
line (state.startX, state.startY)-(canX, canY), drawCol, bf
case 7, 8 ' Polygons[cite: 2]
case 7, 8 ' Polygons
if pointCount > 0 then
for p = 1 to pointCount - 1
thickline polypoints((p - 1) * 2), polypoints((p - 1) * 2 + 1), polypoints(p * 2), polypoints(p * 2 + 1), drawCol