Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/help/rest/tcolor.txt
blob: 09e5ede4ed434e7de2884f9763714e65de9d4480 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.. _tcolor:
.. _intcoloring:
.. _outtcoloring:
.. _tincoloring:
.. _toucoloring:
.. _int0:
.. _int1:
.. _int2:
.. _int3:
.. _int4:
.. _int5:
.. _int6:
.. _int7:
.. _int8:
.. _int9:
.. _int10:
.. _int11:
.. _outt0:
.. _outt1:
.. _outt2:
.. _outt3:
.. _outt4:
.. _outt5:
.. _outt6:
.. _outt7:
.. _outt8:
.. _outt9:
.. _outt10:
.. _outt11:

.. index::
   pair: menu; True-color outcoloring mode
   pair: command line option; intcoloring
   pair: command; intcoloring
   pair: menu; True-color incoloring mode
   pair: command line option; outtcoloring
   pair: command; outtcoloring

Truecolor coloring mode
=======================

**Syntax**:(intcoloring integer)

**Syntax**:(outtcoloring integer)

Truecolor coloring modes are similar to :ref:`incolor <incoloring>` and
:ref:`outcolor <outcoloring>` coloring modes; but instead of using a palette,
they directly calculate the red, green and blue components of the color. This
lets you display more parameters at once, and produces interesting and often
attractive results. On 8bpp displays you need to enable the :ref:`palette
emulator filter <palettef>` first to see anything, amd the quality won't be so
good, as far fewer colors are available per parameter.

The :tutor:`tutorial on truecolor coloring modes <truecol.xaf>` has more
information and examples.

The cryptic names of the modes are always three mathematical formulae (one for
each color component), where **real** means the real part of the latest orbit,
and **imag** means the imaginary part.

To enable inside/outside truecolor coloring mode in the scripting language, set
incoloring/outcoloring value to 10 (truecolor coloring mode) before (or after)
calling intcoloring or outtcoloring.

In the scripting language, the coloring mode is specified by one of the
following integers:

0

    black

1

    re*im sin(re^2) angle

2

    sin(re) sin(im) sin(square)

3

    hsv

4

    hsv2

5

    cos(re^c) cos(im^2) cos(square)

6

    abs(re^2) abs(im^2) abs(square)

7

    re*im re*re im*im

8

    abs(im*cim) abs(re*cre) abs(re*cim)

9

    abs(re*im-csqr) abs(re^2-csqr) abs(im^2-csqr)

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