Solarus Forum

Community => General discussion => Topic started by: froggy77 on February 24, 2018, 11:09:28 pm

Title: GIMP - script-fu for pixel art - change RGB
Post by: froggy77 on February 24, 2018, 11:09:28 pm
Hello,

I created another script to be used with GIMP (https://www.gimp.org/) that it is supposed to be useful for pixel artists.
The aim is to change RGB colors of an image or a selection. I got the idea of ‚Äč‚Äčthis script thanks to this topic "Convert US colour to PAL" (http://forum.solarus-games.org/index.php/topic,1104)

This is a beta version, I hope there will be not too many bugs. Please save your work before. ::)
Don't hesitate to report bugs.

See attachment file (http://forum.solarus-games.org/index.php?action=dlattach;topic=1106.0;attach=600)

What is this kind of script?
It is explained here: https://docs.gimp.org/en/gimp-concepts-script-fu.html (https://docs.gimp.org/en/gimp-concepts-script-fu.html)
 (There is often a translation of docs.gimp.org pages (https://docs.gimp.org/), just replace "en" by "fr" to get for example the french page: https://docs.gimp.org/fr/gimp-concepts-script-fu.html (https://docs.gimp.org/fr/gimp-concepts-script-fu.html) , it italian, es spanish, de ...)

Where to copy it?
It is explained here:  https://docs.gimp.org/en/install-script-fu.html
 (https://docs.gimp.org/en/install-script-fu.html)
Some explanations

- It appears in the menu /Filters/pixelart-change-rgb of GIMP
- It opens a pop-up window where you can change Red, Green and Blue values.
By default, I add 32 to all colors, but you can change these values editing the script.
SF-ADJUSTMENT (https://docs.gimp.org/en/gimp-using-script-fu-tutorial-first-script.html#ftn.idp17227184)    "Red"       '(32 -255 255 1 10 0 SF-SLIDER)
SF-ADJUSTMENT (https://docs.gimp.org/en/gimp-using-script-fu-tutorial-first-script.html#ftn.idp17227184)    "Green"   '(32 -255 255 1 10 0 SF-SLIDER)
SF-ADJUSTMENT (https://docs.gimp.org/en/gimp-using-script-fu-tutorial-first-script.html#ftn.idp17227184)    "Blue"      '(32 -255 255 1 10 0 SF-SLIDER)
- It allows to add or subtract a value to Red Green Blue (RGB) of the selection or the image and draw the result into another image.
- Maximum of 256 colors in your image or in your selection.
- If there is a selection, only the selected layer and its selection are taken into account.
- If there is no selection, all layers are taken into account.