Day 08
Pixels Part 2
We continued experimenting with pixels, with today’s focus on slitscan.
I began by moving simple pixels using the “copy” function:

Then I moved the image and the strings.
for (var x = 0; x < width; x += w) {
let factor = map(x,0,width,0.1,2) // unterschiedliche geschwindigkeit der secciosn
let offset = int(map(sin(angle*factor), -1, 1, 0, columns));//moves back and forward
let sx = (x + offset * w) % width;
copy(img, sx, 0, w, height, x, 0, w, height);
stroke(0);
noFill();
}
angle += 0.1;

I also experimented with the camera for the first time.
