〔概要〕デジタル時計を描画するプログラムです。
〔技法〕Processing
〔実行例〕
![](http://epro.fun/epro/wp-content/uploads/2022/05/image-1.png)
![](http://epro.fun/epro/wp-content/uploads/2022/05/image-1024x285.png)
〔プログラム〕
def setup():
size(900, 220)
textSize(256)
def draw():
background(0)
fill(255)
text(nf(hour(), 2)+":"+nf(minute(), 2)+":"+nf(second(), 2), 0, 190)
〔概要〕デジタル時計を描画するプログラムです。
〔技法〕Processing
〔実行例〕
〔プログラム〕
def setup():
size(900, 220)
textSize(256)
def draw():
background(0)
fill(255)
text(nf(hour(), 2)+":"+nf(minute(), 2)+":"+nf(second(), 2), 0, 190)