Coding: Landscape.

coding-face-2-2

The picture above is based on that a digital landscape will always be different no matter what, but also that it will always have a feature that resembles what it was before then. The digital landscape above shows that in every different illustration, it connects to others around it. In this program I made four variations in the program, and took multiple shots of them.

float QP=45;
float QQP=45;
float YP=35;
float KP=25;
float F=50;
int mrT = 0;
int jin=220;
int jon = 440;
int ugod=300;
int denny= 200;
int HG=0;
//colors
float Flash=255;
float GodSpeed=255;
float Zoom=255;
float star=102;
float op = 153;
void setup() {
size(711, 711);
background(255);
smooth();
}
void draw() {

fill(Flash, mouseX, mouseY);
for (int X = 0; X < 4; X++) {
for (int Y = 0; Y < 4; Y++) {
fill(Flash, mouseX, mouseY);
rect(X*jin, Y*jin, F, F);
rect(X*jon, Y*jon, F, F);
ellipse(X*ugod, Y*denny, HG, HG);
}
}
//changing slides
if (keyPressed) {
if (key==’l’) {
fill(255,255,255);
background(240,250,255);
stroke(0);
HG=10;
F=0;
QP=0;
QQP=0;
YP=0;
}
if (key==’i’) {
fill(10);
stroke(0);
rect(0, 0, 800, 800);
fill(76);
triangle(0, 0, X*400, 400, 700, X*700);
ugod=8000;
denny=8000;
F=0;
HG=0;
QQP=45;
QP=75;
YP=74;
}
if (key==’p’) {
stroke(255, 255, 255);
rect(0, 0, 711, 711);
fill(0, 255, 120);
quad(20, 40, 700, 50, 680, 500, 100, 550);
quad(30, 50, 690, 70, 660, 480, 150, 500);
quad(50, 90, 620, 110, 600, 400, 140, 490);
quad(90, 180, 580, 150, 500, 390, 120, 480);
ellipse(500, 400, 20, 20);
fill(0);
rect(0, 500, 400, 50);
rect(611, 300, 300, 26);
rect(500, 200, 19, 300);
fill(0, 0, 225);
triangle(400, 320, 550, 680, 200, 300);
triangle(390, 340, 537, 660, 240, 320);
triangle(380, 360, 520, 640, 280, 340);
triangle(330, 390, 500, 600, 300, 350);
QP=45;
QQP=75;
YP=30;
F=0;
HG=0;
}
if (key==’o’) {
stroke(0);
fill(255, 255, 255);
rect(0, 0, 711, 711);
QP=45;
QQP=45;
YP=35;
KP=25;
jin=220;
jon=440;
F=50;
HG=0;
}
}
rect (mrT, 20, 70, 10);
rect (mrT, 240, 70, 10);
rect (mrT, 460, 70, 10);
rect (mrT, 680, 70, 10);
//colors bruh
Flash = random(255);
GodSpeed=random(255);
Zoom = random(255);
star=random(102);
op=random(153);
}
void mouseDragged() {
fill(mouseX, mouseY, Flash);
ellipse(mouseX, mouseY, QP, QQP);
fill(mouseX, GodSpeed, mouseY);
ellipse(mouseX, mouseY, YP, YP);
fill(mouseX, mouseY, Zoom);
ellipse(mouseX, mouseY, KP, KP);
mrT = mrT + 1;
if (mrT > 700) {
mrT = 1;
}

jin = jin -1;
if (jin > 700) {
jin = 9;
}
jon = jon+11;
if (jon >700) {
jon=1;
}

ugod = ugod +36;
if (ugod>700) {
ugod=36;
}

denny= denny+3;
if (denny>700) {
denny = 12;
}
}

Advertisements
This entry was posted in non timebased and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s