Skip to content

pantoken-root / design/swatches/src / toAse

Fonksiyon: toAse() ​

toAse(swatches): Uint8Array

Deneysel

Renk örneklerini ASE baytları olarak kodla. Hex olmayan renk örnekleri atlanır.

Parametreler ​

swatches ​

salt okunur Swatch[]

Palet.

Döndürür ​

Uint8Array

ASE dosyası baytlar halinde.

Örnek ​

Bir Adobe .ase paleti yaz

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

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