Noisy New York
- maiguzman28
- Jul 15, 2020
- 1 min read
For a last project I wanted to try new things with the image of New York. Seemes like a good opportunity, so here I go :D
I really got inspired by my classmates, and one of my favorite codes was from the Blog from Sila. I asked her how she came up with it, and she combined things she saw on diverse tutorials. I think it is geniuos so I tried it myself with my NY:
This is a screenshot from this:

And this is the code:
PImage newyork;
void setup(){
size(700, 900);
background(0);
//load the image
newyork = loadImage("newyork.jpg");
//display the image at position 0,0
//image(newyork,0,0);
}
void draw() {
for(int i = 0; i<100; i++){
float x = random(width);
float y = random (height);
color c = newyork.get((int)x, (int)y);
stroke(c);
strokeWeight(5);
line(x,y,x,y+16);
}
}
I then changed the form to ellipses instead of particles:
And this is a screenshot and the code:

PImage newyork;
void setup(){
size(700, 900);
background(0);
//load the image
newyork = loadImage("newyork.jpg");
//display the image at position 0,0
//image(newyork,0,0);
}
void draw() {
for(int i = 0; i<100; i++){
float x = random(width);
float y = random (height);
color c = newyork.get((int)x, (int)y);
stroke(c);
strokeWeight(10);
line(x,y,x,y);
}
}
I was still feelign inspired by NY so I did the very first deviant pixels excercise with this image:

easy...
I wanted to do something pszchodelic but this is not even pretty:

Oh, well...
Now let's make some noise in NY. From Nora's Blog I got this code:

I like it because it looks like pearls.
Now I tried something different with noise:

Looks like a party!
And the very last excercise I wanted to make:



By changing a couple of values, I got different results.
Comments