• fullscreen
  • McLuhav_vs_Boudriardv2.pde
  • circ1.pde
  • circ2.pde
  • PImage Mc;
    PImage Bd;
    PFont  myfont;
    PFont title;
    
    String[] mcText;
    String[] bdText;
    float mccount=13;
    float bdcount=8;
    
    float xpos=200;
    float xpos2=600;
    float ypos=300;
    
    float circrad;
    float rotspeed;
    float circpos;
    
    float circrad2;
    float rotspeed2;
    float circpos2;
    
    
    void setup(){
      background(0);
      size(800,600);
      smooth();
      
      
      Mc=loadImage("MC.jpg");
      Bd=loadImage("BD.jpg");
    
      
      mcText=loadStrings("textdataMC.txt");
      bdText=loadStrings("textdataBD.txt");
      
      title=loadFont("Calibri-Bold-75.vlw");
      
      
      circrad=150;
      circrad2=150;
      circpos=0;
      circpos2=0;
      
      
     
    }
    
    void draw(){
      background(#3E3535);
      noStroke();
      fill(255,100);
      
      textFont(title);
      text("McLuhan VS Baudrillard", 30,550);
      
      circ1();
      circ2();
      
      
      
      
      //mcluhan center pic
      fill(0,100);
      rect(155,240,90,120);
      image(Mc,165,250);
     
      rect(555,240,90,120);
      //Boud center pic
      image(Bd,565,250);
      
      
    }
    
    void circ1(){
      float cdist=(2*PI)/mccount;
      
      int amover=-1;
      
      float xtradist=0;
      for(int lop=0;lop<mccount;lop++){
      
      float posx=xpos+(cos(circpos+(cdist*lop))*circrad);
      float posy=ypos+(sin(circpos+(cdist*lop))*circrad);
    
      noStroke();
      fill(0,90); //#4F2F4F,#5C246E,#EED2EE
      
      ellipse(posx,posy,60,60);
      
      if((mouseX<(posx+40) && mouseX>(posx-40))&&(mouseY<(posy+40) && mouseY>(posy-40))){
       //println ("im there");
       amover=lop;
      }
      
      }
      
      
      if(amover>-1){
        rotspeed=0;
      }else{
        rotspeed=.01;
      }
      
      
      
      
       circpos=(circpos+rotspeed);
       //println("Point val="+amover);
       if(amover>-1){
         myfont=loadFont("Calibri-24.vlw");
         textFont(myfont);
      
         fill(255,100);
      
      String showtext=mcText[amover];
      String [] out=split(showtext,"*");
      for(int dump=0;dump<out.length;dump=dump+1){
        text(out[dump],75,35+(dump*30));
      }
      
         
       }
       
       
       
    
    }
    
    void circ2(){
      
      int bdthere=-1;
     
      float cdist2=(2*PI)/bdcount;
     
      for(int lop=0;lop<bdcount;lop++){
      
      float posx=xpos2+(cos(circpos2+(cdist2*lop))*circrad2);
      float posy=ypos+(sin(circpos2+(cdist2*lop))*circrad2);
      
      noStroke();
      fill(0,90); //#4F2F4F,#5C246E,#EED2EE
      ellipse(posx,posy,60,60);
      
      if((mouseX<(posx+40) && mouseX>(posx-40))&&(mouseY<(posy+40) && mouseY>(posy-40))){
     
       //println ("bd there");
       bdthere=lop;
      }
      }
      
       if(bdthere>-1){ 
        rotspeed2=0;
      }else{
        rotspeed2=.01;
      }
       
      circpos2=(circpos2+rotspeed2);
      
       if(bdthere>-1){
         myfont=loadFont("Calibri-24.vlw");
         textFont(myfont);
         fill(255,100);
      
      String bdtext=bdText[bdthere];
      String [] next=split(bdtext,"*");
      for(int dump=0;dump<next.length;dump=dump+1){
        text(next [dump],475,35+(dump*30));
      }
      
         
       }
      
      
    }
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Anna Dementjeva

    McLuhav_vs_Boudriard

    Add to Faves Me Likey@! 1
    You must login/register to add this sketch to your favorites.

    Work on two theorist - McLuhan and Boudriard

    You need to login/register to comment.