RAM 2.0 – Processing

RAM 2.0 reflects on the unpredictability of motion and movement. The idea is that we, as humans, take control of the dynamics (using the cursor). The icon/character follows the cursor diligently but the motion and rhythm generated are unique and without laws or algorithms.

r1r2r3


Code:

float x;
float y;
float easing = 0.05;

PImage img;

void setup() {
background(255);
size(1920,1080);
img = loadImage(“RAM2.jpg”);
}

void draw() {

background(255);

float targetX = mouseX;
float dx = targetX – x;
x += dx * easing;

float targetY = mouseY;
float dy = targetY – y;
y += dy * easing;
imageMode(CENTER);
image(img, x, y, 200,200);
}

Simone Sciacovelli

Advertisements

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