--( KODE )--
Built with --( P55 )--
install --( java )--

goo.x@gmx.ch
//www.vif.com/users/goo

This project come from David Grant.
I just add a color class to the visualize the folder's level.
I'm planning to make a maze game with recursivity. Just try to
     reach the 15th row. Reload, the Maze is never the same...

///////////////////////////////////////////////////
// Folders.                         ///////////////
// David Grant x@seizethedave.com   ///////////////
// An experiment in... folders.     ///////////////
///////////////////////////////////////////////////

//http://seizethedave.com/etc/p5/folders/folders.pde


//---------------------------
class gC{
  float H,S,B,A;
  boolean Alpha=false;
  gC[] C;
  gC(float _H,float _S,float _B){
    this.H=_H;
    this.S=_S;
    this.B=_B;
  }
  gC(float _H,float _S,float _B, float _A){
    this.H=_H;
    this.S=_S;
    this.B=_B;
    this.A=_A;
    Alpha = true;
  }
  gC(color C){
    this.H=hue(C);
    this.S=saturation(C);
    this.B=brightness(C);
    //this.A=alpha(C);
    //Alpha = true;
  }
  color getC(){
    if(Alpha) return color(H,S,B,A);
    else return color(H,S,B);
  }
  color setSat(float s){
    if(Alpha) return color(H,s,B,A);
    else return color(H,s,B);
  }
  color setLum(float b){
    if(Alpha) return color(H,S,b,A);
    else return color(H,S,b);
  }
  void setHueTab(int num, float range){
    C = new gC[num];
    if(!Alpha)
    for(int i=0;i