Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/help/rest/palette.txt
blob: 15f861d7933302aea1b48937891e6d90a5d5cbc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. _palette:

.. index::
   pair: menu item; Custom palette
   pair: command line option; palette
   pair: command; palette

Custom palette
==============

**Syntax**:(palette integer integer integer)

A custom palette lets you re-create some of the random palettes. The first value
specifies the algorithm, which should currently be one of the following:

0

    Default palette

1

    Black to color gradient

2

    Black to color to white gradient

3

    Cubistic-like algorithm.

The seed specifies a random seed for the palette; different seeds generate
different palettes. The last value is the amount by which the palette is shifted.

Note that changing the palette in the truecolor modes forces recalculation of
the whole screen. To avoid this, you can enable the
:ref:`palette emulation filter <palettef>` first.

**Available as**: menu item, command line option, command