Skip to content

pantoken-root / design/swatches/src / toGpl

Feidhm: toGpl() ​

toGpl(swatches, options?): string

Turgnamhach

Códigh sampailí datha mar shreang phailéad GIMP .gpl.

Paraiméadair ​

swatches ​

léamh-aonair Swatch[]

An phailéad.

options? ​

ToGplOptions = {}

ToGplOptions.

Tuairisceáin ​

string

Samplaí ​

Scríobh pailéad GIMP .gpl

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

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

Le hainm pailéad saincheaptha

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

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