This commit is contained in:
luboslenco
2024-01-17 18:53:31 +01:00
parent 29a20dd5ce
commit ee67b50c0f
268 changed files with 29303 additions and 31304 deletions
+17
View File
@@ -0,0 +1,17 @@
class ExportGpl {
static run = (path: string, name: string, swatches: TSwatchColor[]) => {
let o = "";
o += "GIMP Palette\n";
o += "Name: " + name + "\n";
o += "# armorpaint.org\n";
o += "#\n";
for (let swatch of swatches) {
o += String(color_get_rb(swatch.base)) + " " + String(color_get_gb(swatch.base)) + " " + String(color_get_bb(swatch.base)) + "\n";
}
Krom.fileSaveBytes(path, System.stringToBuffer(o), o.length);
}
}