martes, 25 de octubre de 2016

Segundero

Segundero a décimas:


 

float numero;
void setup(){
  background(0);
  size(200,200);
  frameRate(100);
  numero = 0;
}
void draw(){
  if (mousePressed){
  numero = numero + 0.01;
  background(0);
  textSize(20);
  text(numero, width/2, height/2);
}}

No hay comentarios:

Publicar un comentario