Programujeme v processingu



Jednoduchy zdrojak(Prasacky pisany) pre HODINY


 void setup() {
  size(100,100);
 // frameRate(50);//nemusi byt
}
 

void draw()
{
// int s = second();
int r = year(); 
int m = minute(); 
int d = day();
int mo = month();
//int s = second();////nech si to prida kto chce ale netreba
int h = hour();
 
 textSize(20);
 // text(s,,);//nech si to prida kto chce ale netreba
  text(m,35,20);    
  text(":",30,20);
  text(h,5,20);
 
  text(d,7,40);
  text(".",18,40);
  text(mo,25,40);
 
  text(r,1,60);
}