Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

open-axiom repository from github

24005 views
1
/*
2
Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are
7
met:
8
9
- Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
12
- Redistributions in binary form must reproduce the above copyright
13
notice, this list of conditions and the following disclaimer in
14
the documentation and/or other materials provided with the
15
distribution.
16
17
- Neither the name of The Numerical ALgorithms Group Ltd. nor the
18
names of its contributors may be used to endorse or promote products
19
derived from this software without specific prior written permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
24
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
25
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
35
/*
36
colors.h
37
created on 25 November 1992, Jim Wen
38
(same as the browser/src/color.h file - maybe should share?)
39
*/
40
41
/* The Hues */
42
#define red0 0
43
#define red1 1
44
#define red2 2
45
#define orange0 3
46
#define orange1 4
47
#define orange2 5
48
#define tan0 6
49
#define tan1 7
50
#define tan2 8
51
#define yellow0 9
52
#define yellow1 10
53
#define yellow2 11
54
#define green0 12
55
#define green1 13
56
#define green2 14
57
#define cyan0 15
58
#define cyan1 16
59
#define cyan2 17
60
#define blue0 18
61
#define blue1 19
62
#define blue2 20
63
#define indigo0 21
64
#define indigo1 22
65
#define indigo2 23
66
#define violet0 24
67
#define violet1 25
68
#define violet2 26
69
70
/*
71
The Shades
72
*/
73
#define dark 0
74
#define dim 1
75
#define normal 2
76
#define bright 3
77
#define pastel 3
78
#define light 4
79
80
/*
81
The macros
82
*/
83
#define moColor(h,s) ((mono)?foregroundColor:XSolidColor(h,s))
84
#define moColor_BG(h,s) ((mono)?backgroundColor:XSolidColor(h,s))
85
86