Monday, 30 May 2011

The Loop - Hurdles - The Final Clip

The Hurdle Loop.
For my metaphor I chose to do the ‘loop’. The loop in coding is something that repeats until a specified ending. For my metaphor I was looking for something that repeated the same thing until it was made to stop.
One of my many metaphor concepts and the one I have chosen for my final for this was track hurdles. Like in a ‘loop’, a hurdle jumper needs a starting command. For the hurdler this might be to run down the track, clear all the hurdles (maybe 10) and make it to the finish line, while in code it might be to draw a line and continue to draw an identical line every 10 pixels to the right for 15 lines. The hurdler will run to the first hurdle and jump it, then proceed to the 2nd, and then 3rd until all the set hurdles have been successfully jumped and the runner has crossed the line, in the way that a loop continues to repeat until the code specifies it to stop or it reaches a set limit.
I think this metaphor works well as it clearly shows the start, repetition in the middle and an ending, while remaining subtle enough to come across as a simple game of hurdles.

Example Code might be
__________________________________________________
void Hurdles Setup
{        
             Hurdler(6ft)
            Background (grass)
  }

Void Hurdle Race
{
          Int hurdle distance = 10m from start ;
          Int hurdle count = 0hurdles ;
          While(hurdle count<11)
             {                                                     
                    Hurdlejump(hurdle count*hurdle distance)
                    hurdle count = hurdle count +1
             }
}
____________________________________________________


Sunday, 15 May 2011

P3 - Timeline and Materials

MATERIALS
Concept One: Fish tank and colour changing ball.
Concept Two: Computer
Convept Three: Computer and Paper

P3 - Concepts

Concept One
For concept one I was was looking at loops and looking at how you create one line of code and the outcome is that the rest are almost mirror images. an example of this in code might be;
void draw()              
{                                     
   int space=10;              
  int count=0;               
  while(count<12)          
  {                      
                                               line(count*space,0,count*space,height);
            count=count+1;
  }      
}                               

Concept Two

For this concept I was looking at code such as...
 if (mouseX < 40)
{                               
stroke(255);        
          rect(-60,-60, 120,120);
}                             
In this case when the Ball is over the Water Level then the Ball Colour changes.

Concept Three

For concept three I took into acount that when the variable changes the rest of the code changes so for the Exibition peice, it you change the variable pic , the rest of the the code pics for change to relate to that variable.

P3 - Brainstorm