iris <- function(n = 1, initial = "blue") {
x <- sapply(1:n, function(x) {
tclvalue(.Tcl(paste("tk_chooseColor",
.Tcl.args(initialcolor = initial,
title = if(n==1) "Choose a color" else paste0("Choose color ", n)))))
})
x[x==""] <- NA_character_
x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.