groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / contrib / hdtbl / examples / color_transitions.roff
1 .\" -*- mode: roff -*-
2 .ig
3
4 color_transitions.roff
5
6 This file is part of groff, the GNU roff type-setting system.
7
8 Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
9 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
10
11 groff is free software; you can redistribute it and/or modify it under
12 the terms of the GNU General Public License as published by the Free
13 Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 groff is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
23
24 ..
25 .
26 .time start
27 .de ctab
28 .nr #cc 0
29 .PN 21 ".nr #cc +.05f" ".defcolor \En[t*#] rgb \\$1 \\$2 \\$3" ".TBL border= csp=0 cpd=.5n bgc=\\\\n[t*#] bc=" .TR .TD
30 .PN 21 .ETB
31 ..
32 .PN 30 Before table.
33 .TBL cols=3 width=33% border= csp=0 cpd=0 bgc=
34 .CPTN val=b Color Transitions
35 .TR 
36 .TD ".ctab 0+\En[#cc]u \En[#cc]u \En[#cc]u"     \"      black -> white
37 .TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\"    white -> black
38 .TD ".ctab 1f \En[#cc]u \En[#cc]u"              \"      red   -> white
39 .TR 
40 .TD ".ctab 0 1f-\En[#cc]u \En[#cc]u"            \"      green   -> blue
41 .TD ".ctab 1f 1f-\En[#cc]u 1f"                  \"      white   -> magenta
42 .TD ".ctab 1f \En[#cc]u 1f"                     \"      magenta -> white
43 .TR 
44 .TD ".ctab 0+\En[#cc]u \En[#cc]u 1f-\En[#cc]u"  \"      blue   -> yellow
45 .TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u \En[#cc]u" \"      yellow -> blue
46 .TD ".ctab 1f 0+\En[#cc]u 0"                    \"      red    -> yellow
47 .xTD ".ctab 0+\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\"    cyan   -> red
48 .ETB 
49 .PN 30 After table.
50 .time
51 .\"     466MHz Celeron CPU, 384MB RAM 
52 .\"     WindowsXP/cygwin groff18.1:      3s
53 .\"     WindowsXP/cygwin groff19.2:     20s
54 .\"     Suse Linux 9.3 groff19.2         3s