SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## get a single color, and display on screen
  2.  
  3. random.color <- function() {
  4.  hexbot <- GET(endpoint)
  5.  content(hexbot)$colors[[1]]$value
  6. }
  7.  
  8. rcol <- random.color()
  9. barplot(1, col=rcol, main=rcol, axes=FALSE)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top