-
Experimenting w/Processing; “Chaos”
Gave a little tweak to the code extracted from chapter 1 of the book ¨Algorithms for visual design¨.
void setup(){size(848,520);
smooth();}
void draw(){updateMe();}
void updateMe(){
for(int x=0; x<width; x+=10)
for(int y= 0; y<height; y+=10){
beginShape();
vertex(x+random(-20.,30.),y+random(-20.,30.));
vertex(x+random(-20.,30.)+10, y+random(-20.,30.));
vertex(x+random(-20.,30.)+10, y+random(-20.,30.)+20);
vertex(x+random(-20.,30.), y+random(-20.,30.)+20);
endShape(CLOSE);
}
}
You can run the program here, just copy paste… http://sketch.processing.org/
Notes
-
cielosdepapel reblogged this from aikorea
-
amirabet likes this
-
chyno05 reblogged this from telephants and added:
Ni papa, oye…
-
aikorea reblogged this from bertinoli
-
hoppip likes this
-
nldmut reblogged this from bertinoli
-
intothecontinuum likes this
-
ama-no-iwato reblogged this from skinnywhitedude
-
jartamban-keltemben likes this
-
telephants reblogged this from opink
-
neonstorm likes this
-
skinnywhitedude reblogged this from bertinoli
-
luxotika reblogged this from bertinoli
-
wytyg likes this
-
lackinside likes this
-
e0en likes this
-
xgifs reblogged this from bertinoli
-
bvodesign reblogged this from bertinoli
-
heathgrimm likes this
-
vanity-is-an-evil-disease reblogged this from lollipopchronicles
-
datahacker likes this
-
leonkevlar likes this
-
kareobana reblogged this from fyprocessing
-
nosajholt likes this
-
prideandworth reblogged this from bertinoli
-
thealienshe likes this
-
hackedy likes this
-
nicolajane2012 reblogged this from fyprocessing
-
nicolajane2012 likes this
-
rubot likes this
-
lollipopchronicles likes this
-
lollipopchronicles reblogged this from ricoconess
-
ricoconess reblogged this from fyprocessing
-
fyprocessing reblogged this from bertinoli
-
nurnie likes this
-
bertinoli posted this
