minute()#

Py5 communicates with the clock on your computer.

Examples#

1def draw():
2    py5.background(204)
3    s = py5.second()  # values from_ 0 - 59
4    m = py5.minute()  # values from_ 0 - 59
5    h = py5.hour()    # values from_ 0 - 23
6    py5.line(s, 0, s, 33)
7    py5.line(m, 33, m, 66)
8    py5.line(h, 66, h, 100)

Description#

Py5 communicates with the clock on your computer. The minute() function returns the current minute as a value from 0 - 59.

Underlying Processing method: minute

Syntax#

minute() -> int

Updated on November 12, 2021 11:30:58am UTC