File: pattern.h

package info (click to toggle)
xspread 3.1.1c-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,836 kB
  • ctags: 1,426
  • sloc: ansic: 19,342; yacc: 499; lisp: 231; makefile: 198; sh: 28; sed: 4
file content (168 lines) | stat: -rw-r--r-- 5,936 bytes parent folder | download | duplicates (2)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
 * Copyright (C) 1992  Board of Regents of the University of Wisconsin
 * on behalf of the Department of Electrical Engineering and Computer
 * Science, University of Wisconsin-Milwaukee, Milwaukee, WI 53201.
 *
 * This program 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 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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
 * a copy of which is included here in file "GNU_GENERAL",
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * The programs in this directory were developed by software engineering 
 * teams as part of the course "Introduction to Software Engineering" 
 * under the supervision of Professor G. Davida.
 * This is a modification of a program written or modified by
 * others.  The original copyrights, as per GNU General Public License,
 * may still be applicable.  The UWM copyright is applicable only
 * the those parts generated at UWM.
 *
 * Please send all changes, enhancements, and other comments about this
 * software to
 *     		soft-eng@cs.uwm.edu
 *
 * No Warranty, expressed or implied, comes with this software.
 * This software is intended to be used by not-for-profit
 * organizations or by individuals for personal HOME use. 
 * This software, or any of its parts, may not be used by for-profit
 * organization, regardless of application or intended product or
 * customer, without the permission of the Board of Regents of the 
 * University  of Wisconsin. 
 *
 * Contact:	soft-eng@cs.uwm.edu
 *			or
 *		
 *		Software Engineering Coordinator
 *		Computer Science
 *    		Department of EECS
 *		University of Wisconsin - Milwaukee
 *		Milwaukee, WI  53201
 *		414-229-4677
 *
 *		HISTORY,CLAIMS and CONTRIBUTIONS
 */
/* These patterns were created using the bitmap editor.  They are used */
/* in the plot_pie, plot_bar, and plot_stacked_bar procedures.         */
/* Dan Gruber - 11/13/91                                               */

#define white_width 1
#define white_height 1
static char white_bits[] = {
   0x01};

#define gray1_width 4
#define gray1_height 4
static char gray1_bits[] = {
   0xfe, 0xff, 0xfb, 0xff};

#define gray2_width 16
#define gray2_height 16
static char gray2_bits[] = {
   0xaa, 0xaa, 0xff, 0xff, 0xaa, 0xaa, 0xff, 0xff, 0xaa, 0xaa, 0xff, 0xff,
   0xaa, 0xaa, 0xff, 0xff, 0xaa, 0xaa, 0xff, 0xff, 0xaa, 0xaa, 0xff, 0xff,
   0xaa, 0xaa, 0xff, 0xff, 0xaa, 0xaa, 0xff, 0xff};

#define gray3_width 2
#define gray3_height 2
static char gray3_bits[] = {
   0x01, 0x02};

#define gray4_width 16
#define gray4_height 16
static char gray4_bits[] = {
   0x55, 0x55, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00,
   0x55, 0x55, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00,
   0x55, 0x55, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00};

#define gray5_width 4
#define gray5_height 4
static char gray5_bits[] = {
   0x01, 0x00, 0x04, 0x00};

#define black_width 1
#define black_height 1
static char black_bits[] = {
   0x00};

#define horiz_lines_width 1
#define horiz_lines_height 5
static char horiz_lines_bits[] = {
   0x00, 0x00, 0x01, 0x00, 0x00};

#define vert_lines_width 5
#define vert_lines_height 1
static char vert_lines_bits[] = {
   0x04};

#define checker_width 10
#define checker_height 10
static char checker_bits[] = {
   0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x00, 0xe0, 0x03,
   0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x03};

#define diag_l_width 7
#define diag_l_height 7
static char diag_l_bits[] = {
   0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40};

#define diag_r_width 7
#define diag_r_height 7
static char diag_r_bits[] = {
   0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};

#define light_diamond_width 7
#define light_diamond_height 7
static char light_diamond_bits[] = {
   0xbe, 0xdd, 0xeb, 0xf7, 0xeb, 0xdd, 0xbe};

#define dark_diamond_width 7
#define dark_diamond_height 7
static char dark_diamond_bits[] = {
   0x41, 0x22, 0x14, 0x08, 0x14, 0x22, 0x41};

#define light_cross_weave_width 16
#define light_cross_weave_height 16
static char light_cross_weave_bits[] = {
   0xaa, 0xaa, 0x77, 0x77, 0xaa, 0xaa, 0xdd, 0xdd, 0xaa, 0xaa, 0x77, 0x77,
   0xaa, 0xaa, 0xdd, 0xdd, 0xaa, 0xaa, 0x77, 0x77, 0xaa, 0xaa, 0xdd, 0xdd,
   0xaa, 0xaa, 0x77, 0x77, 0xaa, 0xaa, 0xdd, 0xdd};

#define dark_cross_weave_width 16
#define dark_cross_weave_height 16
static char dark_cross_weave_bits[] = {
   0x55, 0x55, 0x88, 0x88, 0x55, 0x55, 0x22, 0x22, 0x55, 0x55, 0x88, 0x88,
   0x55, 0x55, 0x22, 0x22, 0x55, 0x55, 0x88, 0x88, 0x55, 0x55, 0x22, 0x22,
   0x55, 0x55, 0x88, 0x88, 0x55, 0x55, 0x22, 0x22};

#define light_root_weave_width 4
#define light_root_weave_height 4
static char light_root_weave_bits[] = {
   0xf8, 0xf2, 0xf4, 0xf1};

#define dark_root_weave_width 4
#define dark_root_weave_height 4
static char dark_root_weave_bits[] = {
   0x07, 0x0d, 0x0b, 0x0e};

#define light_wide_weave_width 16
#define light_wide_weave_height 16
static char light_wide_weave_bits[] = {
   0x11, 0x11, 0xb8, 0xb8, 0x7c, 0x7c, 0x3a, 0x3a, 0x11, 0x11, 0xa3, 0xa3,
   0xc7, 0xc7, 0x8b, 0x8b, 0x11, 0x11, 0xb8, 0xb8, 0x7c, 0x7c, 0x3a, 0x3a,
   0x11, 0x11, 0xa3, 0xa3, 0xc7, 0xc7, 0x8b, 0x8b};

#define dark_wide_weave_width 16
#define dark_wide_weave_height 16
static char dark_wide_weave_bits[] = {
   0xee, 0xee, 0x47, 0x47, 0x83, 0x83, 0xc5, 0xc5, 0xee, 0xee, 0x5c, 0x5c,
   0x38, 0x38, 0x74, 0x74, 0xee, 0xee, 0x47, 0x47, 0x83, 0x83, 0xc5, 0xc5,
   0xee, 0xee, 0x5c, 0x5c, 0x38, 0x38, 0x74, 0x74};