Last active
June 14, 2019 00:11
-
-
Save revodavid/c4b4d501c3f19005419db110aad8ea97 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
## get a single color, and display on screen | |
random.color <- function() { | |
hexbot <- GET(endpoint) | |
content(hexbot)$colors[[1]]$value | |
} | |
rcol <- random.color() | |
barplot(1, col=rcol, main=rcol, axes=FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment