blob: 9bad16139eeb2b440b32bf79c7be82937182be2a (
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
|
.\" -*- mode: roff -*-
.ig
color_transitions.roff
This file is part of groff, the GNU roff type-setting system.
Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
groff is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or
(at your option) any later version.
groff is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
..
.
.time start
.de ctab
.nr #cc 0
.PN 21 ".nr #cc +.05f" ".defcolor \En[t*#] rgb \\$1 \\$2 \\$3" ".TBL border= csp=0 cpd=.5n bgc=\\\\n[t*#] bc=" .TR .TD
.PN 21 .ETB
..
.PN 30 Before table.
.TBL cols=3 width=33% border= csp=0 cpd=0 bgc=
.CPTN val=b Color Transitions
.TR
.TD ".ctab 0+\En[#cc]u \En[#cc]u \En[#cc]u" \" black -> white
.TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\" white -> black
.TD ".ctab 1f \En[#cc]u \En[#cc]u" \" red -> white
.TR
.TD ".ctab 0 1f-\En[#cc]u \En[#cc]u" \" green -> blue
.TD ".ctab 1f 1f-\En[#cc]u 1f" \" white -> magenta
.TD ".ctab 1f \En[#cc]u 1f" \" magenta -> white
.TR
.TD ".ctab 0+\En[#cc]u \En[#cc]u 1f-\En[#cc]u" \" blue -> yellow
.TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u \En[#cc]u" \" yellow -> blue
.TD ".ctab 1f 0+\En[#cc]u 0" \" red -> yellow
.xTD ".ctab 0+\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\" cyan -> red
.ETB
.PN 30 After table.
.time
.\" 466MHz Celeron CPU, 384MB RAM
.\" WindowsXP/cygwin groff18.1: 3s
.\" WindowsXP/cygwin groff19.2: 20s
.\" Suse Linux 9.3 groff19.2 3s
|