V&A processing code

import processing.serial.*;
Serial myPort; // Create object from Serial class
String val; // Data received from the serial port
float ballX;
float ballY;
float speedX;
float speedY;
float noiseCoord;

void setup(){
size( 800, 800 );
ballX = 200;
ballY = 200 ;
// I know that the first port in the serial list on my mac
// is Serial.list()[0].
// On Windows machines, this generally opens COM1.
// Open whatever port is the one you’re using.
String portName = Serial.list()[0]; //change the 0 to a 1 or 2 etc. to match your port
myPort = new Serial(this, portName, 9600);

void draw(){

if ( myPort.available() > 0)
{ // If data is available,
val = myPort.readStringUntil(‘\n’); // read it and store it in val
println(val); //print it out in the console
ballX = ballX + speedX;
ballY =ballY +speedY;
//ellipse( ballX , ballY, 10 , 10 );
text(int(random(0,9)), ballX,ballY );
//text (random(‘E’,’*’), ballX, ballY);
if( ballY >=800 ){

speedX=random(-2, -8);


void keyPressed(){
//if (key == CODED){
if (keyCode == UP){
speedX= speedX+random(10,20); speedY= speedY+random(10,20);
if (keyCode == DOWN){
speedX= speedX+random(-10,-20);
if (keyCode == LEFT){
speedY= speedY+random(10,20);
if (keyCode == RIGHT){
speedY= speedY+random(-10,-20);


V&A processing code

What roles do social networks play in new year celebration in different cultures?

Humans are living in a big social system, that nobody can leave it. Therefore, what we mentioned here is Exploring the roles of social networks and analysing how does it influence our life.



to be contuined

What roles do social networks play in new year celebration in different cultures?