Skip to content

Instantly share code, notes, and snippets.

@amoeba
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save amoeba/2f1de2d11a5b6e700c31 to your computer and use it in GitHub Desktop.

Select an option

Save amoeba/2f1de2d11a5b6e700c31 to your computer and use it in GitHub Desktop.
Hexclock in R
# hexclock
# after http://www.jacopocolo.com/hexclock/
# written by Bryce Mecum (@brycem)
while(TRUE)
{
hextime <- paste0("#", format(Sys.time(), "%I%M%S"))
plot(NA, xlim=c(0,1), ylim=c(0,1), axes=F, xlab="", ylab="")
rect(0, 0, 1, 1, col=hextime)
text(0.5, 0.5, hextime, col="white",cex = 4)
Sys.sleep(1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment