Anonymous user
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
allowed = False
def setup():
global img
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)
|