Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def setup():
- global img, sizemod
- size(800, 800)
- img = loadImage("bird-8014191_1920.jpg") # File name goes here
- sizemod = 3
- def draw():
- global img, sizemod
- x = img.width
- y = img.height
- imageMode(CENTER)
- image(img, mouseX, mouseY, x/sizemod, y/sizemod)
- def keyPressed():
- global sizemod
- if key == 's':
- saveFrame("####.jpg")
- if key == '[':
- if sizemod >1:
- sizemod -= 0.1
- if key == ']':
- sizemod += 0.1
- if key == 'f':
- filter(INVERT)
Advertisement
Add Comment
Please, Sign In to add comment