Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Thu Mar 30, 2023 1:30 am Post subject:
Starkku has released a new tool for palettes: the PalTool!
Subject description: I don't see your true colors shining through, because they are limited to 8 bits!
Hi everyone! Reinforcements have arrived from Starkku. He has recently created a new tool called PalTool. It is a command line tool that performs certain operations on JASC and Westwood Command & Conquer palette files used in Tiberian Dawn, Red Alert 1, Tiberian Sun, and Red Alert 2. Here is what you need to know to use PalTool in your projects:
Quote:
PalTool
Command line program for performing certain operations on JASC and WW C&C palette files. Does not supplant basic palette editor functionality, at least not as of current.
Usage: PalTool.exe palette_file [output_palette_file] [-a, -m, -r, -c, -t, -s, -p]
-m | Modify colors based on alpha.
-a [number] | Calculate alpha using the average of color values. The number is what the cumulative color value is divided by to get the average, which defaults to 3.
-t [hue|saturation|light|red|green|blue|alpha|brightness|rgb|gradients] threshold-value [new-alpha-value] | Modify alpha based on a threshold. The value listed after determines the threshold type. Defaults to 'saturation' if an invalid value is specified. Colors that pass the threshold value have their alpha set to the new value. The rest are left untouched. No threshold is not valid. The new alpha value defaults to 1. Both threshold & new alpha values should be numbers from 0 to 255.
-s [hue|saturation|light|red|green|blue|alpha|brightness|rgb|gradients] | Sort colors. The value listed after determines the sort method. Defaults to 'rgb' if an invalid value is specified.
-g [startindex] [count] [saturation_threshold] | Sort parameters. The start color index, number of gradients, and saturation split threshold for gradients sort (0-1.0) default to 1, 8, and 0.33, respectively.
-b | Output 6-bit RGB color components instead of 8-bit (only if JASC palette).
-d | Print debug info about palette to console.
-r | Do not save alpha values in the output palette (only if JASC palette).
-c | Save output as WW palette, not JASC palette.
-p | Save a 256x1px PNG image containing one pixel of each palette color.
You can find more information about PalTool by visiting the Official Website. Download PalTool. That's all, folks! Stay tuned at PPM for more news coverage on PalTool!
You cannot post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum