Created
September 26, 2018 13:23
-
-
Save samizdatco/795ded89d76e3afcf6ae16394aede5c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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