This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
component:gpu [2017/03/27 23:54] payonel [RGB Color] |
component:gpu [2017/03/27 23:55] payonel [Palette Color] |
||
---|---|---|---|
Line 86: | Line 86: | ||
Palette Color | Palette Color | ||
============ | ============ | ||
- | When the second param to `setBackground` or `setForeground` is true, the `value` number is interpreted as palette index [0, 16). If you switch from a higher bit density to monochrome note that the color value from the palette is used to determine zero vs the nonzero monochrome color. It is an error to specify a paletted color (i.e. an index value and `true`) in 1 bit depth. | + | When `is_palette` is `true`, `value` is interpreted as palette index [0, 16). If you switch from a higher bit density to monochrome note that the color value from the palette is used to determine zero vs the nonzero monochrome color. It is an error to specify a paletted color (i.e. an index value and `true`) in 1 bit depth. |
Changing Depth | Changing Depth |