AuthorTopic: Palettes in grafx2, how can I configure them correctly?  (Read 2894 times)

Offline pixelcoin

  • 0001
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
I have been using grafx2 now for a little while and got used to the basics of the program. I love it! There is something I have not been able to setup correctly - Palettes. I know how to load a palette, but if I edit a palette, it gets really confusing.
So, let's say I load grafx2 with the default palette. This is 256 colors I think. 2 colors have a rectangle around them. 1 is transparent black and the other is white. I would like to know a couple of things about this if someone is familiar with it.

1. How can I switch to 16 color mode and if I do, out of the 256 colors, which turn out to be the 16 colors that get saved to the file? What happens to the transparent color?

2. When loading my image into other programs, the transparent part of the image is black (using default grafx2 palette). How can I ensure my transparent color is saved? I only use png or gif.

The last question is off-topic sort of. Is there a large palette repository online where I can look at other palettes? The grafx2 website has some cool palettes, but I thought I would look for game or image specific palettes if I can find some.

Any help on any of these questions would be nice.

Offline pixelcoin

  • 0001
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile

Re: Palettes in grafx2, how can I configure them correctly?

Reply #1 on: March 21, 2013, 01:54:02 am
I got a little further. I reduced to 4 colors and the last 4 colors got saved for the interface. I saw some posts on this, so I understand it's necessary. All other colors are black now and there is a thin white line next to color 0. What is this line? Is it a marker for transparency? Does this mean that color 0 "MUST as in HAS TO" be the transparent color? Back to my original question. How can I make sure it stays transparent when saved?

Offline yrizoud

  • 0010
  • *
  • Posts: 330
  • Karma: +0/-0
    • View Profile

Re: Palettes in grafx2, how can I configure them correctly?

Reply #2 on: March 22, 2013, 01:25:35 am
Quote
2 colors have a rectangle around them. 1 is transparent black and the other is white
These indicate the background and foreground colors, ie. the colors assigned to the left and right mouse buttons for painting. This piece of information is not saved in the image, it only exists while in the editor.

Quote
1. How can I switch to 16 color mode and if I do, out of the 256 colors, which turn out to be the 16 colors that get saved to the file?
Grafx2 itself doesn't support less than 256 colors, so you can't "force" a limit like 16 colors. When you save as GIF or PNG, it always saves the entire 256-color palette that you see in the palette editor. In any case, if your image uses only colors number 1, 7, 23 and 135 for example, it "is" a 4-color image. It's only for your own convenience that you usually arrange the palette so the used colors are at the beginning (0, 1, 2 etc) and in a useful order (for example dark to light)

Quote
transparent color?
The transparent color is one of your palette: Your image is in fact either 256-color or 255-color+transparency. If you want part of your image to be transparent, click the "layer" button, activate "Background transparency", and select which color number acts as transparent. While in grafx2 you will not see the difference, but in the saved GIF or PNG, the marked color will act as transparent.

Quote
All other colors are black now and there is a thin white line next to color 0.
In the Palette screen ? It indicates which colors are actually used in your image : Click the "Used" button to toggle these indicators on and off. Colors are marked if there is at least one pixel that uses them. It's very usual to have duplicates in the Palette (for example many colors "black"). These indicators can help you check if you have accidentally used several of them.