![]() These colors are not documented, but zep has indicated that he is aware of their discovery and that he is allowing their use. "light-peach" at index 15, as "peach" seemed more appropriate in the additional color range below, which contains a dark peach color as well."lavender" at index 13, as "indigo" is a darker, more saturated color, and also a somewhat different hue.Names from Roman Zolotarev's PICO-8 palette reference, except: These are the 16 system colors the screen palette is mapped to when PICO-8 starts up: ![]() The system palette 0.15: Official base colors No single frame may contain more than 16 colors. It is not possible to split the screen into sections which configure the screen palette differently. The screen palette may be changed any time during or between frames, but only the screen palette which is set at the time the frame is presented to the user will actually be used. This mapping can be changed by adjusting palette #1 with a call to pal(screen_palette_index, system_palette_index, 1). See System palette below for details.īy default, screen palette indices 0-15 are mapped 1:1 to system palette indices 0-15. The screen palette maps pixel indices found in screen data memory to indices in the larger system palette, which currently contains 32 pre-defined colors. It cannot choose directly from the larger system palette. However, it can only choose from the 16 colors that are in the screen palette. Unlike the screen palette, it does not need to be the same for the entire frame. The draw palette can be changed at will, affecting subsequent draw calls. By default, index 0 is flagged as transparent, but it's possible to flag any index, or multiple indices, or none. It can be changed with a call to palt(draw_palette_index, true/false). If set, sprite pixels with that index will not be written. The draw palette also has a transparency flag per entry. The draw palette is useful for things like palette-swapped sprites, where you have one sprite image that can be drawn for, say, different teams or ranks with different uniform colors. This mapping can be changed by adjusting palette #0 with a call to pal(draw_palette_index, screen_palette_index). The written values will, in turn, be used by PICO-8 to index into the screen palette (see below) when the frame is ready to be presented to the viewer.īy default, draw palette indices 0-15 are mapped 1:1 to screen palette indices 0-15. 3.2 128.143: Undocumented extra colorsĮach draw call uses the current draw palette to map the input 4-bit palette indices (either from parameters or sprite pixels) to the 4-bit values which are actually written to screen data memory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |