Skip to content

pantoken / design/swatches/src / toGpl

Fušla: toGpl()

toGpl(swatches, options?): string

Eksperimentála

Koda swatches GIMP .gpl-paletta satnaga.

Parametera

swatches

čállin olgguheapmi Swatch[]

Paleta.

options?

ToGplOptions = {}

ToGplOptions.

Gullii / Gávdnat

string

Exempla

Ráđđehit GIMP .gpl-palettta

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

writeFileSync("instructure.gpl", toGpl(swatches));

Guhtege palettanama mii leat geavahit

ts
import { swatches, toGpl } from "@pantoken/swatches";

const gpl = toGpl(swatches, { name: "Instructure Rebrand" });