ase_encode | R Documentation |
Encode a built ASE object for output
ase_encode(data)
data |
An ASE swatch object created by |
raw vector
create_ase() |> add_color( name = "RGB Red", model = "RGB", color_vals = as.vector(col2rgb("#FF0000")/255), type = "global" ) |> add_color( name = "RGB Yellow", model = "RGB", color_vals = as.vector(col2rgb("#FFFF00")/255), type = "global" ) |> ase_encode() |> writeBin(tempfile(fileext = ".ase"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.