Skip to content

pantoken-root / design/swatches/src / toAse

Mahi: toAse() ​

toAse(swatches): Uint8Array

Whakamātautau

Whaka-encode i ngā swatches hei bytes ASE. Ka whakawātea ngā swatches kāore i te hex.

Ngā Tawhā ​

swatches ​

panui-anake Swatch[]

Te papa tae.

Whakahokia ​

Uint8Array

Te kōnae ASE hei bytes.

Tauira ​

Tuhia he papa tae Adobe .ase

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

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