Labels

Monday, 12 August 2013

242 p2 progression

"LETTER L"


void setup(){
  size(500,500);
}
void draw(){
  pushStyle();
  noStroke();
  rect(150,100,50,250);
  rect(150,350,250,50);
popStyle();

  ellipse(145,200,50,50);
  ellipse(205,200,50,50);

  pushStyle();
fill(0,0,255);
  ellipse(150,200,20,20);
  ellipse(200,200,20,20);
    popStyle();
}

one idea still needs to grow on.......

My progress this class underneath...
I've got the zooming in completed but I need to find a way to contrain my if statement containing my letter because when I pass 240 on the screen i want the letter to show then at 260 I want it to turn off.
Here's the code for if statement:


 ....................................................
 float minVaule = 240;
 float maxVaule = 260;

 float constrainX = constrain(mouseX,minVaule,maxVaule);
 float normm = norm(constrainX,minVaule,maxVaule);

if(mouseX > constrainX){
  fill(random(0,255));
  noStroke();
 
  rect(150,100,50,250);
  rect(150,350,250,50);
.....................................................






No comments:

Post a Comment