Hey guys! Why when i try to print this image as a PDF i get the original image and a partial scripted image of that instead of just the scripted image ina a PDF format?
Thanks!
PImage i;
import processing.pdf.*;
int w=100, h=180, sx=w, x, y;
void setup() {
size (200,200,PDF,"prova.pdf");
i=loadImage("a1.jpg");
image (i, 0,0, width, height);
}
void draw() {
if (sx-->10)for (y=0;y++<h;)for (x=0;(x+=sx)<w;) {
Hey! i want to modify this script by adding a function that draws a line that links all the pixels that have the same color, but after i loaded the pixel into x e y arrays i don't know how to go on.
Thanks
PImage img;
int increment=2;
void setup() {
size(2304, 1728);
img = loadImage("PROVA3.jpg");
image(img, 2304, 1728, width, height);
loadPixels();
for (int x = 0; x < ((width*height)-(increment+2)); x+=increment) {
quicksort(pixels, x, x+increment);
}
updatePixels();
glitcher();
}
void draw() {
save ("my_picture.jpg");
}
void glitchIt(int jump) {
image(img, 0, 0, 2304, 1728);
loadPixels();
for (int x = 0; x < ((width*height)-(jump+1)); x+=jump) {
Hi, i have this script that alters an image but it doesn't save the altered image. I've tried to add the saving and pdf export part but processing tells the error " unexpected token" in the saving part in the setup line. I really hope you can help me out!
Thanks!
PImage img;
int increment=2;
void setup() {
size(2304, 1728);
img = loadImage("d.JPG");
image(img, 2304, 1728, width, height);
loadPixels();
for (int x = 0; x < ((width*height)-(increment+2)); x+=increment) {
quicksort(pixels, x, x+increment);
}
updatePixels();
glitcher();
}
void draw() {
}
void glitchIt(int jump) {
image(img, 0, 0, 2304, 1728);
loadPixels();
for (int x = 0; x < ((width*height)-(jump+1)); x+=jump) {