Projeto

Geral

Perfil

Revisão 17

blackmatter trail

Ver diferenças:

Blackmatter.pde
11 11
  {
12 12
  int x = 0;
13 13
  int y = 0;  
14
  int diameter = 100;
14
  int diameter = 50;
15 15
  boolean dead = false;
16 16
  
17 17
  void setup ()
......
26 26
      
27 27
    fill (10, 50);
28 28
    noStroke ();
29
    rect (this.x, this.y, this.diameter, this.diameter);
29

  
30
    ellipse (this.x, this.y, this.diameter, this.diameter);
30 31
    
31
    if (this.diameter < 510)
32
      this.diameter++;
32
    if (this.diameter > 0)
33
      this.diameter--;
33 34
    
34 35
    
35 36
    }
36 37
    
37 38
  boolean check ()
38 39
    {
40
    if (this.diameter <= 0)
41
      return true;
42
      
39 43
    return false;
40 44
    
41 45
    /*
......
63 67
    return false;
64 68
 */  
65 69
  }
66
  }
70
  }

Também disponível em: Unified diff