Slit scan with picture

Hi everybody,
i want to ask if processing can do slit scan with pictures
thank you

Hello,

Is this what you mean?

sclit_scan

Photo by Simone Hutsch on Unsplash

Then ask!

I was able to do this with a few lines of code:

image

Reference:

Hints:

  • get() and mouseX() to get a slice (slit) of the image
  • set() to draw the slice while increasing x each frame of draw()

Reference:

:)