Static p5_sys::global::hour [−][src]
pub static hour: HourInternalType
Expand description
p5.js communicates with the clock on your computer. The hour() function returns the current hour as a value from 0 - 23.
Examples
let h = hour(); text('Current hour:\n' + h, 5, 50);