Skip to content

pantoken / design/swatches/src / toAse

Fonksyon: toAse()

toAse(swatches): Uint8Array

Eksperimantal

Ankode echantiyon koulè kòm baj ASE. Echantiyon ki pa hex yo sote.

Paramèt

swatches

sèlman-lekti Swatch[]

Palèt la.

Retounen

Uint8Array

Fichye ASE a kòm baj.

Egzanp

Ekri yon palèt Adobe .ase

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

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