Skip to content

Instantly share code, notes, and snippets.

@samizdatco
Created September 26, 2018 13:23
Show Gist options
  • Save samizdatco/795ded89d76e3afcf6ae16394aede5c5 to your computer and use it in GitHub Desktop.
Save samizdatco/795ded89d76e3afcf6ae16394aede5c5 to your computer and use it in GitHub Desktop.
var existingHour
function setup() {
var now = clock()
existingHour = now.hour
}
function draw() {
var now = clock()
if (now.hour != existingHour){
print(`the hour changed ${existingHour}${now.hour}`)
}
existingHour = now.hour
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment