minute()#

Py5 communicates with the clock on your computer.

Examples#

def draw():
    py5.background(204)
    s = py5.second()  # values from_ 0 - 59
    m = py5.minute()  # values from_ 0 - 59
    h = py5.hour()    # values from_ 0 - 23
    py5.line(s, 0, s, 33)
    py5.line(m, 33, m, 66)
    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

Signatures#

minute() -> int

Updated on March 06, 2023 02:49:26am UTC