Monday, 2 May 2011

Project 2 - Final

Screen shot of my processing
import ddf.minim.*;

Minim minim;
AudioPlayer song1red;
AudioPlayer song2red;
AudioPlayer song3red;
AudioPlayer song4red;

AudioPlayer song1blue;
AudioPlayer song2blue;
AudioPlayer song3blue;
int d=1;
int v = 3;
int dir = 1;

int a=1;
int v2 =5;
int dir2=1;

int b=1;
int v3=8;
int dir3=1;

int c=1;
int v4=3;
int dir4=1;

int e=1;
int v5=5;
int dir5=1;

int f=1;
int v6=1;
int dir6=1;


int dx = 150;
int dy = 150;

int ax = 400;
int ay = 400;

int bx = 200;
int by = 700;

int cx = 600;
int cy = 700;

int ex = 800;
int ey = 200;
float distanceX;
float distanceY;

void setup()
{
  size(800,800);
  background(0,0,0,80);
  noStroke();
  smooth();
  minim = new Minim(this);
 song1red = minim.loadFile("Temple_Bell.mp3");
  song2red = minim.loadFile("Temple_Bell.mp3");
  song3red = minim.loadFile("Temple_Bell.mp3");
  song4red = minim.loadFile("Temple_Bell.mp3");
  song1blue = minim.loadFile("Temple_Bell.mp3");
  song2blue = minim.loadFile("Temple_Bell.mp3");
    song3blue = minim.loadFile("Temple_Bell.mp3");

 
}

void draw()
{
  background(0,0,0,80);
  fill(258,47,158,80);


  /////////////////RED ellipse/////////////////////////////
  if (mousePressed ==true) {
    if (mouseButton== LEFT) {
      if (abs(mouseX-dx) < d/2) {
        if (abs(mouseY-dy) < d/2) {
          dx=mouseX;
          dy=mouseY;
        }
      }
    }
  }
  ellipse (dx, dy, d, d);

  d= d+(v*dir);
  if(d >= 300)
  {
    dir = -1;
  }
  if(d <= 0)
  {
    dir = 1;
  }
  ///////////////BLUE ellipse//////////////////////////////

  fill(25,14,80,80);
  if (mousePressed ==true) {
    if (mouseButton== LEFT) {
      if (abs(mouseX-ax) < a/2) {
        if (abs(mouseY-ay) < a/2) {
          ax=mouseX;
          ay=mouseY;
        }
      }
    }
  }

  ellipse(ax,ay,a,a);
  a=a+(v2*dir2);
  if(a>=300)
  {
    dir2 = -1;
  }
  if (a <= 0)
  {
    dir2 = 1;
  }

//////////////BROWN elliipse/////////////////////
  fill(217,158,68,80);
 if (mousePressed ==true) {
    if (mouseButton== LEFT) {
      if (abs(mouseX-bx) < b/2) {
        if (abs(mouseY-by) < b/2) {
          bx=mouseX;
          by=mouseY;
        }
      }
    }
  }

  ellipse(bx,by,b,b);
  b=b+(v3*dir3);
  if(b>=600)
  {
    dir3 = -1;
  }
  if(b<=0)
  {
    dir3 = 1;
  }

///////////////GREEN ellipse//////////////////////
  fill(88,222,102,80);
   if (mousePressed ==true) {
    if (mouseButton== LEFT) {
      if (abs(mouseX-cx) < c/2) {
        if (abs(mouseY-cy) < c/2) {
          cx=mouseX;
          cy=mouseY;
                  }
      }
    }
  }
  ellipse(cx,cy,c,c);
  c=c+(v4*dir4);
  if(c>=250)
  {
    dir4 = -1;
  }
  if(c<=0)
  {
    dir4 = 1;
  }

//////////////////////////////////
  fill(108,255,250,80);
    if (mousePressed ==true) {
    if (mouseButton== LEFT) {
      if (abs(mouseX-ex) < e/2) {
        if (abs(mouseY-ey) < e/2) {
          ex=mouseX;
          ey=mouseY;
                  }
      }
    }
  }
  ellipse(ex,ey,e,e);
  e=e+(v5*dir5);
  if(e>=380)
  {
    dir5 = -1;
  }
  if(e<=0)
  {
    dir5 = 1;
  }
  /////////////sound made RED-BLUE//////////////

  if (dist(dx,dy,ax,ay)<abs(a)/2+abs(d)/2)
 {
    song1red.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (dx,dy,ax,ay)>abs(a)/2+abs(d)/2)
  {
   song1red.loop(0);
 }
 ///////////////////sound made RED-BROWN/////////////////////////

   if (dist(dx,dy,bx,by)<abs(b)/2+abs(d)/2)
 {
    song2red.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (dx,dy,bx,by)>abs(b)/2+abs(d)/2)
  {
   song2red.loop(0);
 }

 ///////////////sound made RED-GREEN///////////////////
    if (dist(dx,dy,cx,cy)<abs(c)/2+abs(d)/2)
 {
    song3red.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (dx,dy,cx,cy)>abs(c)/2+abs(d)/2)
  {
   song3red.loop(0);
 }
 ///////////////////sound made RED-LIGHT BLUE//////////////

     if (dist(dx,dy,ex,ey)<abs(e)/2+abs(d)/2)
 {
    song4red.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (dx,dy,ex,ey)>abs(e)/2+abs(d)/2)
  {
   song4red.loop(0);
 }

////////////////sound made BLUE-LIGHT BLUE////////////////
     if (dist(ax,ay,ex,ey)<abs(e)/2+abs(a)/2)
 {
    song1blue.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (ax,ay,ex,ey)>abs(e)/2+abs(a)/2)
  {
   song1blue.loop(0);
 }
 ///////////////////sound made BLUE-GREEN/////////////////////////
      if (dist(ax,ay,cx,cy)<abs(c)/2+abs(a)/2)
 {
    song2blue.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (ax,ay,cx,cy)>abs(c)/2+abs(a)/2)
  {
   song2blue.loop(0);
 }
//////////////////////sound made BLUE-BROWN////////////////////////////////
      if (dist(ax,ay,bx,by)<abs(b)/2+abs(a)/2)
 {
    song3blue.play();
   println("dist = " + str(dist(150,150,400,400)) + ", rad = " + str(abs(a)+abs(d)));
  }
 if(dist (ax,ay,bx,by)>abs(b)/2+abs(a)/2)
  {
   song3blue.loop(0);
 }

}

//void stop()
//{
//  song1.close();
//  song2.close();
//  minim.stop();
//  super.stop();
//}

Monday, 21 March 2011

Final Wallpapers

 These are my new designed patterns that I have been influenced by the other patterns that I have posted in Inspiration tab.
For the first pattern, I have layed out my existing quad shaped patterns on the background and made simple ellipse shapes above. These ellipse shapes overlap, coloured in different colours to give border line but also gradient and aethetics to the pattern design. For the second one, I have also incorporated the quad shapes but in the foreground. I have also put layers of ellipses in it to portray histerical look. For third one, I have inserted several circles in each another, so it creates like a balanced out pattern. For the fourth pattern design, I have been influenced by the designs of Gucci logo, and I have designed that in my own way to suit my idea; balance. Instead of having S shape that joins the each patterns, like in Gucci logo, I have seperated each designs apart to give balanced look.
All the patterns are unique and can be differentiated from each another. I have tried to portray the idea of balance behind these patterns while also trying to make them look pleasing to the eyes.




Thursday, 10 March 2011

Pattern 4

My Fourth Pattern
In this pattern making design, I have depicted patterns thinking of the ideas of balance and harmony.
I have coloured and spaced out the forms carefully to create these sense of ideas.
Also, I have incorporated the star-quad design onto the top left, to give more aesthetics.

Pattern 3

My Third Pattern
In this pattern making design, I have looked at different Geometry shapes (quad).
In starting this design, I have tried to create quad (seen on the background) by drawing lines that had to be joined from one another. However it was a fail so I found and inserted quad-codes in creating them.
This pattern making design is illusionistic in some ways. If looked overall, circles can be seen while by looking it different way, star shaped quads can be seen.

Pattern 2

My Second Pattern
In this pattern making design, I have looked at typography. As seen above, the word 'CODE' is been repeated while the word 'Dsdn 142' is not. I also have tested how well the typography and the lining effect works well with each other.

Pattern 1

Angela's Pattern
My First Pattern


INITIAL IDEA : Simple and Balance
 

In this pattern making design, I have looked at how to draw circles, lines and their colourings.
Those little lines formed of many ellipses are from Angela's current processing work. I have modified the ones from Angela's work and made them into line styled look.