INTERNET ART: networks, performative programming, and web as context


Leave a comment

What do we think of this google and youtube news?

Most of India Still Isn’t Online—Here’s Google’s Plan to Fix That – MIT TECHNOLOGY REVIEW

https://www.technologyreview.com/s/602476/most-of-india-still-isnt-online-heres-googles-plan-to-fix-that/?utm_campaign=internal&utm_medium=readnext&utm_source=item_1

 

HOW YOUTUBE REINVENTED ITSELF FOR THE NEXT BILLION USERS  -WIRED:

https://www.wired.com/2016/09/youtube-reinvented-next-billion-users/

Advertisements


Leave a comment

Counting is fun

int xPos=200;
float w = 300;
float h = 150;
String n = “No, it’s really not!”;
float textX = 0;
float textY = h/2;
float textS = 10;
float textH = 15;
float speed = 4;

Button on_button;
int clk = 1;

void setup() {
size (300, 300);
smooth();

}

void draw() {

on_button = new Button(“Counting is Fun!”, 20, 20, 100, 50);

if (on_button.MouseIsOver()) {
rect(200, 20, 50, 50);
background(100,0,0);
}
else {
background(0,100,100);
}
if(mouseX < width/3){
background(30,100,120);
}
else if(mouseX > width/3 && mouseX < 2*(width/3)){
background(0,200,0);
}
else{
background(0,0,255);
}
line(width/3,0, width/3,height);
line(2*(width/3),0, 2*(width/3), height);

float r = random(255);
float g = random(255);
float b = random(255);
color random = color(r,g,b);
fill(random);
textSize(textH);
text(n, textX, textY);

textX=textX + speed;

if (textX > width || textX < 0){
speed = speed * -1;
}
else if (xPos >width+20){
xPos=-20;
}
on_button.Draw();
}
// mouse button clicked
void mousePressed()
{
if (on_button.MouseIsOver()) {
background(200,0,200);
frameRate(25);

float r = random(255);
float g = random(255);
float b = random(255);
color random = color(r,g,b);
fill(random);
strokeWeight(7);

ellipse(xPos, 200, 40, 40);
xPos=xPos+1;
ellipse(xPos, 100, 40, 40);
xPos=xPos+1;
line(width/2,0,width/2,height);
line(0,height/2, width, height/2);
print(“Clicked: “);
println(clk++);
}
}
class Button {
String label; // button label
float x; // top left corner x position
float y; // top left corner y position
float w; // width of button
float h; // height of button
Button(String labelB, float xpos, float ypos, float widthB, float heightB) {
label = labelB;
x = xpos;
y = ypos;
w = widthB;
h = heightB;
}

void Draw() {
fill(218);
stroke(141);
rect(x, y, w, h, 10);
textAlign(CENTER, CENTER);
fill(0);
text(label, x + (w / 2), y + (h / 2));
}

boolean MouseIsOver() {
if (mouseX > x && mouseX < (x + w) && mouseY > y && mouseY < (y + h)) {
return true;
}
return false;
}
}


Leave a comment

Bouncing Box

Screen Shot 2016-09-29 at 10.54.14 AM.png

boolean square = false;
float xx = random(300);
float yy = random(300);
float xx2 = random(300);

float dd = 20;
float speed = random(-2,5);
float speed2 = random(-2,5);
//color aa = #012279;
float xdirection = random (-2, 5);
float ydirection = random (-2, 5);
int xdirection2 = -2;
int ydirection2 = -2;

void setup () {
size (300,300);
background (90);
}

void draw () {
background (90);
//ellipse(xx,yy,dd,dd);
rect (xx,yy,dd,dd);

xx = xx + (speed * xdirection);
yy = yy + (speed2 * ydirection);

if (xx >width-20 || xx < 0) {
xdirection *= -1;
float rr = random(255);
float gg = random(255);
float bb = random(255);
float tt = random(255);
color ran = color(rr,gg,bb,tt);
float xdirection = random (-2, 5);

fill(ran); }
if (yy >height-20 || yy < 0) {
ydirection *= -1;
float rr = random(255);
float gg = random(255);
float bb = random(255);
float tt = random(255);
color ran = color(rr,gg,bb,tt);

float ydirection = random (-2, 5);
fill(ran);
}
}


Leave a comment

Soccer

screen-shot-2016-09-27-at-4-49-22-pm

My code:

Boolean soccer=false;

float ellipseX=(300);
float ellipseY=(300);
int eSize=(50);
float speed=random(-10,-20);

color black=color(0,0,0);
color white=color(255,255,255);
color green=color(27,179,22);
color red=color(255,0,0);
color blue=color(0,77,255);

void setup(){
size(600,600);
background(green);
}

void draw(){
float r=random(255);
background(green);

//soccer ball
stroke(black);
fill(white);
ellipse(ellipseX,ellipseY,eSize,eSize);

ellipseX=ellipseX+speed;

if((ellipseX>width-100||ellipseX<+100)){
speed=speed*(-1);
}

//left goal
stroke(black);
noFill();
line(90,260,100,340);
line(90,260,50,300);
line(100,340,50,380);
line(100,340,100,380);
line(50,300,50,380);

//right goal
stroke(black);
noFill();
line(510,260,500,340);
line(510,260,550,300);
line(500,340,550,380);
line(500,340,500,380);
line(550,300,550,380);
}


Leave a comment

Responsive Game

Still glitchy, if you press the mouse for an even amount of frames it won’t work.

float X = 500;
float Y = 500;
float eX = width/2;
float eY = height/2;

float eD = 10;

float rectW = 100;
float rectH = 500;

float speed= 20;

String n = “LOSER”;

boolean button = false;

void setup (){
size (500,500);
frameRate(15);
}

void draw(){
background(0);
fill(100);
rect(0,0,rectW,rectH);

fill(0,255,0);
ellipse (eX,eY,eD,eD);
eX=eX+speed;

if (eX > width){
speed=speed*-1;
}

if (eX<0){
background(255,0,0);
fill(255,255,255);
text (n, X/3, Y/2);
textSize(72);
}
if (mousePressed){
fill(255,255,255);
rect(0,0,rectW,rectH);
}

if (mouseX < rectW && mouseX > 0 && mouseY > 0 && mouseY < rectH && mousePressed && eX < rectW){
button = true;
}
else {
button = false;

}
if (button){
speed = speed*-1+1;
rectW = rectW -1;

}

}
screen-shot-2016-09-27-at-3-13-23-pm