Last active
August 29, 2015 14:02
-
-
Save amoeba/2f1de2d11a5b6e700c31 to your computer and use it in GitHub Desktop.
Hexclock in R
This file contains hidden or 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
| # 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