ase_encode: Encode a built ASE object for output

View source: R/ase-write.R

ase_encodeR Documentation

Encode a built ASE object for output

Description

Encode a built ASE object for output

Usage

ase_encode(data)

Arguments

data

An ASE swatch object created by create_ase()

Value

raw vector

Examples

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"))

hrbrmstr/swatches documentation built on April 8, 2022, 3:59 p.m.