Skip to content

pantoken-root / design/swatches/src / toGpl

Mahi: toGpl() ​

toGpl(swatches, options?): string

Whakamātautau

Whakakōdēhia ngā tauira tae hei aho papatohu GIMP .gpl.

Ngā Tawhā ​

swatches ​

panui-anake Swatch[]

Te papa tae.

options? ​

ToGplOptions = {}

ToGplOptions.

Whakahokia ​

string

Ngā tauira ​

Tuhia he papatohu GIMP .gpl

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

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

Me te ingoa papatohu ritenga

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

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