Skip to content

pantoken / design/swatches/src / toAse

Feidhm: toAse()

toAse(swatches): Uint8Array

Turgnamhach

Códáil samhlacha dathanna mar bhaití ASE. Scipeáiltear samhlacha nach bhfuil i bhfoirm heicsáideach.

Paraiméadair

swatches

léamh-aonair Swatch[]

An phailéad.

Tuairisceáin

Uint8Array

An comhad ASE mar bhaití.

Sampla

Scríobh pailéad Adobe .ase

ts
import { writeFileSync } from "node:fs";
import { swatches, toAse } from "@pantoken/swatches";

writeFileSync("instructure.ase", toAse(swatches));