Skip to content

Instantly share code, notes, and snippets.

@revodavid
Last active June 14, 2019 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revodavid/c4b4d501c3f19005419db110aad8ea97 to your computer and use it in GitHub Desktop.
Save revodavid/c4b4d501c3f19005419db110aad8ea97 to your computer and use it in GitHub Desktop.
## 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