Jump to content

Bitmap/Flood fill: Difference between revisions

m
→‎{{header|Processing Python mode}}: style fix: constants and globals assigned earlier
m (→‎{{header|Processing Python mode}}: style fix: constants and globals assigned earlier)
Line 2,020:
 
tolerance = 15
fill_color = color(250, 0, 0)
allowed = False
 
def setup():
global img, fill_color
size(600, 400)
img = loadImage("image.png")
fill_color = color(250, 0, 0)
fill(0, 0, 100)
 
image(img, 0, 0, width, height)
textSize(18)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.