martes, 9 de noviembre de 2021

P5JS Contador Simple

 P5JS Contador Simple


https://openprocessing.org/sketch/1346247

//A Simple Counter

//https://learn.digitalharbor.org/courses/creative-programming/lessons/using-timers-in-p5-js/

function setup() { 

  createCanvas(400, 400);


function draw() { 

  background(0);

  fill(255, 0, 100);

  textSize(24);

  text(`${round(millis()/1000)} seconds have gone by!`, 20, height/2);

}


No hay comentarios:

Publicar un comentario