Skip to content

pantoken-root / design/swatches/src / toGpl

Swyddogaeth: toGpl() ​

toGpl(swatches, options?): string

Arbrofol

Codwch samplau lliw fel llinyn palet GIMP .gpl.

Paramedrau ​

swatches ​

darllen yn unig Swatch[]

Y palet.

options? ​

ToGplOptions = {}

ToGplOptions.

Yn dychwelyd ​

string

Enghreifftiau ​

Ysgrifennwch palet GIMP .gpl

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

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

Gyda enw palet wedi'i addasu

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

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