Skip to content

pantoken / design/swatches/src / toGpl

Fonksyon: toGpl()

toGpl(swatches, options?): string

Eksperimantal

Ankòd echantiyon koulè kòm yon chèn palèt GIMP .gpl.

Paramèt

swatches

sèlman-lekti Swatch[]

Palèt la.

options?

ToGplOptions = {}

ToGplOptions.

Retounen

string

Egzanp

Ekri yon palèt GIMP .gpl

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

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

Avèk yon non palèt pèsonalize

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

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