Skip to content

pantoken-root / design/swatches/src / toAse

Swyddogaeth: toAse() ​

toAse(swatches): Uint8Array

Arbrofol

Codwch samplau lliw fel byts ASE. Anwybyddir samplau nad ydynt yn hecs.

Paramedrau ​

swatches ​

darllen yn unig Swatch[]

Y palet.

Yn dychwelyd ​

Uint8Array

Y ffeil ASE fel byts.

Enghraifft ​

Ysgrifennwch baled .ase Adobe

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

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