アットウィキロゴ
 

Palettes

This page describes how YY-CHR handles color palettes.

Palette Files

YY-CHR has two ways of reading and storing palettes & colors—PAL files and DAT files.

PAL files

These files are marked with a ".pal" extension, but they can have any extension. In fact, YY-CHR will load any file and display the values within as colors. It interprets each 8-bit byte as a color value in a RGB triple, and the whole file as one long RGB triple list—no header, no delimiters. YY-CHR shows at least X colors in a palette. If there is not enough data to fill the palette, extra spots are filled in as (0,0,0).

DAT files

These files are lists of colors. Instead of each byte being a part of an RGB triple, each byte is a color value from the currently loaded palette. These files typically have a ".dat" extension but can have any filename. Additionally YY-CHR will read any file as a list of palette colors, as this file format has no header nor delimiters.

Despite DAT files being the way to store subpalette information in YY-CHR, they do not encode subpalette sizes. To apply subpalettes properly to CHR previews, palette size must be set by using the X dropdown.

The Palette Interface in YY-CHR

There are three sections in the program that deal with palettes and colors: The Character ROM Image Format Drop-down on the Navigation Panel, the PAL and SET areas of the Editor Panel, and the Palette Menu on the Menu bar.

CHR Image Format Drop-down

By changing the CHR format you change the subpalette size for preview. If you look at Fig. No.1 below, you can see a subpalette size of four. In Figure No.2, a size of sixteen.

PAL (RGB Palette) and SET (Palette Table) Sections

These areas show the RGB palette and, optionally, the Palette Table, allow you to choose subpalettes to apply to the CHR preview, and makes it easy to edit the palettes.

PAL+SET

A screenshot of YY-CHR showcasing its PAL+SET mode.

Figure No.1

Green region
All the colors loaded from the palette table. Red box encloses the currently applied subpalette; white box encloses the selected color.
Blue region
Colors loaded from the RGB palette. This one appears to be a variant of the NES palette. Notice that the white box in the blue region and the white box in the green region enclose the same color. By selecting a different color in the blue region, you change that color in the subpalette on the fly. The changes will not be recorded until the program is instructed to do so using X.

PAL only

A screenshot of YY-CHR showcasing its PAL mode.

Figure No.2

Green region
The colors loaded from an RGB palette. The applied subpalette is displayed in a red frame, and the selected color is displayed in a white frame. This appears to be a SNES-style palette.

Palette Menu

todo


Page Todo

  • Confirm the specs above.
  • Add translated caption to the first figure.
  • General proofreading.
最終更新:2022年05月16日 19:23