void setup() {
size(500,500);
}
void draw()
{
digital_clock();
}
void digital_clock()
{
background(0,0,0);
int posX=130;
int posY=250;
int sec = second();
int min = minute();
int hr = hour();
fill(41,225,66);
textSize(50);
text(hr+":",posX,posY);
textSize(50);
text(min+":",posX+80,posY);
textSize(50);
text(sec,posX+160,posY);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น