root / processing / blacklight / Logo.pde @ 18
Histórico | Ver | Anotar | Download (1,05 KB)
| 1 |
/* |
|---|---|
| 2 |
BLACKLIGHT v1.0 |
| 3 |
Project made for Mestrado de Comunicação Multimédia, Ramo Multimédia Interactivo at Departamento de Comunicação e Arte at Universidade de Aveiro. |
| 4 |
|
| 5 |
Author: Nuno Simaria - nsimaria@ua.pt - #23652 |
| 6 |
Other workgroup members: Ana Filipa Lacerda, Daniela Rei, Renato Costa, Julien Cuenin |
| 7 |
*/ |
| 8 |
|
| 9 |
class Logo |
| 10 |
{
|
| 11 |
void setup () |
| 12 |
{
|
| 13 |
|
| 14 |
} |
| 15 |
|
| 16 |
void draw (int timer, int whites, int blacks) |
| 17 |
{
|
| 18 |
|
| 19 |
//println ("drawing!");
|
| 20 |
fill (255); |
| 21 |
|
| 22 |
textFont (_bold_, 60); |
| 23 |
text ("LIGHT", 10, 55);
|
| 24 |
text ( timer, 10, _game_.height - 10 ); |
| 25 |
textFont (_bold_, 24); |
| 26 |
text (whites + " cells", 186, 31); |
| 27 |
text ( _game_.lightBattles + " battles", 186, 55); |
| 28 |
|
| 29 |
|
| 30 |
fill (0); |
| 31 |
scale (-1 , 1); |
| 32 |
textFont (_bold_, 57); |
| 33 |
text ("BLACK", -_game_.width + 12, 55);
|
| 34 |
text ( timer, -_game_.width + 12, _game_.height - 10 ); |
| 35 |
textFont (_bold_, 24); |
| 36 |
text (blacks + " cells", -_game_.width + 190, 31); |
| 37 |
text ( _game_.blackBattles + " battles", -_game_.width + 190, 55); |
| 38 |
scale (-1, 1); |
| 39 |
|
| 40 |
|
| 41 |
} |
| 42 |
} |