Computational Media

Strings and Data

This week I was interested in collecting data from Twitter through Processing. First I had to install the Twitter4J Java library to use its functionality and get an API Key from Twitter to create an application based on its data.

/ No comments

Strings and Data

This week I was interested in collecting data from Twitter through Processing. First I had to install the Twitter4J Java library to use its functionality and get an API Key from Twitter to create an application based on its data.

/ No comments

Pixels + Live Video

The pixels from the video source are drawn as rectangles with size based on brightness, creating an abstract mirror visualization. videoScale = 20; sets the distance between pixels, to be displayed as rows and columns using nested for loops. (int

/ No comments

Pixels + Live Video

The pixels from the video source are drawn as rectangles with size based on brightness, creating an abstract mirror visualization. videoScale = 20; sets the distance between pixels, to be displayed as rows and columns using nested for loops. (int

/ No comments

Arrays

This week I created an octopus that will be used as a part of my Physical Computing midterm project. The main sketch is composed by an ellipse and an array of arms, and each arm is a class that is

/ One Comment

Arrays

This week I created an octopus that will be used as a part of my Physical Computing midterm project. The main sketch is composed by an ellipse and an array of arms, and each arm is a class that is

/ One Comment

Classes + Collision Detection

A class is an object composed of data and functions to create different behaviors. This week I had to define a class, send it to a partner and incorporate my partner’s class into a new sketch to communicate with mine.

/ No comments

Classes + Collision Detection

A class is an object composed of data and functions to create different behaviors. This week I had to define a class, send it to a partner and incorporate my partner’s class into a new sketch to communicate with mine.

/ No comments

Functions

This sketch enhances the previous code by re-organizing it into functions. Each function takes parameters so I can use them multiple times and re-use them in a different sketch. I decided to play with my previous sketches, so I turned

/ No comments

Functions

This sketch enhances the previous code by re-organizing it into functions. Each function takes parameters so I can use them multiple times and re-use them in a different sketch. I decided to play with my previous sketches, so I turned

/ No comments

The ‘for’ Loop

Loops are used to execute a block of code a number of times, with different values. In this case, I used the ‘for’ loop functionality to create a grid of elements. (int x = -50; x < width; x+=50) refers

/ No comments

The ‘for’ Loop

Loops are used to execute a block of code a number of times, with different values. In this case, I used the ‘for’ loop functionality to create a grid of elements. (int x = -50; x < width; x+=50) refers

/ No comments

Interactive animation

The beetle I created in Processing can now move, change over time and respond to mouse interactions. Its Y position is set by posY = posY-10, while its X position is determined by the mouse using posX = mouseX. I

/ No comments

Interactive animation

The beetle I created in Processing can now move, change over time and respond to mouse interactions. Its Y position is set by posY = posY-10, while its X position is determined by the mouse using posX = mouseX. I

/ No comments

Processing drawing

Screen drawing in Processing using 2d primitive shapes: quad(), rect(), triangle(), beginShape(), endShape() and basic color functions: background(), fill(), stroke().

/ No comments

Processing drawing

Screen drawing in Processing using 2d primitive shapes: quad(), rect(), triangle(), beginShape(), endShape() and basic color functions: background(), fill(), stroke().

/ No comments