/usr/share/doc/groff-base/html/pic-6.html is in groff 1.22.2-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | <!-- Creator : groff version 1.22.2 -->
<!-- CreationDate: Thu Sep 4 17:17:41 2014 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
h1 { text-align: center }
</style>
<title>pic-6.html</title>
</head>
<hr>
[ <a href="pic-5.html">prev</a> | <a href="pic-7.html">next</a> | <a href="pic.html">top</a> ]
<hr>
<h2>6. Decorating Objects
<a name="6. Decorating Objects"></a>
</h2>
<h3>6.1. Text Special Effects
<a name="6.1. Text Special Effects"></a>
</h3>
<p style="margin-top: 1em">All <b>pic</b> implementations
support the following font-styling escapes within text
objects:</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="16%">
<p style="margin-top: 1em">\fR, \f1</p></td>
<td width="84%">
</td></tr>
</table>
<p style="margin-left:10%;">Set Roman style (the
default)</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="16%">
<p style="margin-top: 1em">\fI, \f2</p></td>
<td width="84%">
</td></tr>
</table>
<p style="margin-left:10%;">Set Italic style</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="16%">
<p style="margin-top: 1em">\fB, \f3</p></td>
<td width="84%">
</td></tr>
</table>
<p style="margin-left:10%;">Set Bold style</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%">
<p style="margin-top: 1em">\fP </p> </td>
<td width="82%">
</td></tr>
</table>
<p style="margin-left:10%;">Revert to previous style; only
works one level deep, does not stack.</p>
<p style="margin-top: 1em">In the <b>pic</b>
implementations that are preprocessors for a toolchain that
include <b>[gtn]roff</b>, text objects may also contain
<b>[gtn]roff</b> vertical- and horizontal-motion escapes
such as \h or \v. Troff special glyphs are also available.
All \-escapes will be passed through to the postprocessing
stage and have their normal effects. The base font family is
set by the <b>[gtn]roff</b> environment at the time the
picture is rendered.</p>
<p style="margin-top: 1em"><b>pic2plot</b> replaces
<b>[gtn]roff</b> horizontal- and vertical-motion escapes
with \-escapes of its own. Troff special glyphs are not
available, but in most back ends Latin-1 special characters
and a square-root radical will be. See the <b>pic2plot</b>
documentation for full details.</p>
<h3>6.2. Dashed Objects
<a name="6.2. Dashed Objects"></a>
</h3>
<p style="margin-top: 1em">We’ve already seen that
the modifier <b>dashed</b> can change the line style of an
object from solid to dashed. GNU <b>gpic</b> permits you to
dot or dash ellipses, circles, and arcs (and splines in TeX
mode only); some versions of DWB may only permit dashing of
lines and boxes. It’s possible to change the dash
interval by specifying a number after the modifier.</p>
<p align="center" style="margin-top: 1em"><img src="img/pic18.png" alt="Image img/pic18.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-1:
Dashed objects</p>
<h3>6.3. Dotted Objects
<a name="6.3. Dotted Objects"></a>
</h3>
<p style="margin-top: 1em">Another available qualifier is
<b>dotted</b>. GNU <b>gpic</b> permits you to dot or dash
ellipses, circles, and arcs (and splines in TeX mode only);
some versions of DWB may only permit dashing of lines and
boxes. It too can be suffixed with a number to specify the
interval between dots:</p>
<p align="center" style="margin-top: 1em"><img src="img/pic19.png" alt="Image img/pic19.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-2:
Dotted objects</p>
<h3>6.4. Rounding Box Corners
<a name="6.4. Rounding Box Corners"></a>
</h3>
<p style="margin-top: 1em">It is also possible, in GNU
<b>gpic</b> only, to modify a box so it has rounded
corners:</p>
<p align="center" style="margin-top: 1em"><img src="img/pic20.png" alt="Image img/pic20.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-3:
<b>box rad</b> with increasing radius values</p>
<p style="margin-top: 1em">Radius values higher than half
the minimum box dimension are silently truncated to that
value.</p>
<h3>6.5. Slanted Boxes
<a name="6.5. Slanted Boxes"></a>
</h3>
<p style="margin-top: 1em">GNU <b>gpic</b> supports slanted
boxes:</p>
<p align="center" style="margin-top: 1em"><img src="img/pic21.png" alt="Image img/pic21.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-4:
Various slanted boxes.</p>
<p style="margin-top: 1em">The <b>xslanted</b> and
<b>yslanted</b> attributes specify the x and y offset,
respectively, of the box’s upper right corner from its
default position.</p>
<h3>6.6. Arrowheads
<a name="6.6. Arrowheads"></a>
</h3>
<p style="margin-top: 1em">Lines and arcs can be decorated
as well. Any line or arc (and any spline as well) can be
decorated with arrowheads by adding one or more as
modifiers:</p>
<p align="center" style="margin-top: 1em"><img src="img/pic22.png" alt="Image img/pic22.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-5:
Double-headed line made with <b>line <- -></b></p>
<p style="margin-top: 1em">In fact, the <b>arrow</b>
command is just shorthand for <b>line -></b>. And there
is a double-head modifier <->, so the figure above
could have been made with <b>line <-></b>.</p>
<p style="margin-top: 1em">Arrowheads have a <b>width</b>
attribute, the distance across the rear; and a <b>height</b>
attribute, the length of the arrowhead along the shaft.</p>
<p style="margin-top: 1em">Arrowhead style is controlled by
the style variable <b>arrowhead</b>. The DWB and GNU
versions interpret it differently. DWB defaults to open
arrowheads and an <b>arrowhead</b> value of 2; the
Kernighan paper says a value of 7 makes solid
arrowheads. GNU <b>gpic</b> defaults to solid arrowheads and
an <b>arrowhead</b> value of 1; a value of 0
produces open arrowheads. Note that solid arrowheads are
always filled with the current outline color.</p>
<h3>6.7. Line Thickness
<a name="6.7. Line Thickness"></a>
</h3>
<p style="margin-top: 1em">It’s also possible to
change the line thickness of an object (this is a GNU
extension, DWB <b>pic</b> doesn’t support it). The
default thickness of the lines used to draw objects is
controlled by the <b>linethick</b> variable. This gives the
thickness of lines in points. A negative value means use the
default thickness: in TeX output mode, this means use a
thickness of 8 milliinches; in TeX output mode with the
<b>-c</b> option, this means use the line thickness
specified by <b>.ps</b> lines; in troff output mode, this
means use a thickness proportional to the pointsize. A zero
value means draw the thinnest possible line supported by the
output device. Initially it has a value of -1. There is also
a <b>thickness</b> attribute (which can be abbreviated to
<b>thick</b>). For example, <b>circle thickness 1.5</b>
would draw a circle using a line with a thickness of 1.5
points. The thickness of lines is not affected by the value
of the <b>scale</b> variable, nor by any width or height
given in the <b>.PS</b> line.</p>
<h3>6.8. Invisible Objects
<a name="6.8. Invisible Objects"></a>
</h3>
<p style="margin-top: 1em">The modifier <b>invis[ible]</b>
makes an object entirely invisible. This used to be useful
for positioning text in an invisible object that is properly
joined to neighboring ones. Newer DWB versions and GNU
<b>pic</b> treat stand-alone text in exactly this way.</p>
<h3>6.9. Filled Objects
<a name="6.9. Filled Objects"></a>
</h3>
<p style="margin-top: 1em">It is possible to fill boxes,
circles, and ellipses. The modifier <b>fill[ed]</b>
accomplishes this. You can suffix it with a fill value; the
default is given by the style variable <b>fillval</b>.</p>
<p style="margin-top: 1em">DWB <b>pic</b> and <b>gpic</b>
have opposite conventions for fill values and different
defaults. DWB <b>fillval</b> defaults to 0.3 and smaller
values are darker; GNU <b>fillval</b> uses 0 for white and 1
for black.</p>
<p align="center" style="margin-top: 1em"><img src="img/pic23.png" alt="Image img/pic23.png"></p>
<p align="center" style="margin-top: 1em">Figure 6-6:
<b>circle fill; move; circle fill 0.4; move; circle fill
0.9;</b></p>
<p style="margin-top: 1em">GNU <b>gpic</b> makes some
additional guarantees. A fill value greater than 1 can also
be used: this means fill with the shade of gray that is
currently being used for text and lines. Normally this is
black, but output devices may provide a mechanism for
changing this. The invisible attribute does not affect the
filling of objects. Any text associated with a filled object
is added after the object has been filled, so that the text
is not obscured by the filling.</p>
<p style="margin-top: 1em">The closed-object modifier
<b>solid</b> is equivalent to <b>fill</b> with the darkest
fill value (DWB <b>pic</b> had this capability but mentioned
it only in a reference section).</p>
<h3>6.10. Colored Objects
<a name="6.10. Colored Objects"></a>
</h3>
<p style="margin-top: 1em">As a GNU extension, three
additional modifiers are available to specify colored
objects. <b>outline</b> sets the color of the outline,
<b>shaded</b> the fill color, and <b>color</b> sets both.
All three keywords expect a suffix specifying the color.
Example:</p>
<p align="center" style="margin-top: 1em"><font color="#000000"><img src="img/pic24.png" alt="Image img/pic24.png"></font></p>
<p align="center" style="margin-top: 1em"><font color="#000000">Figure
6-7: <b>box color "yellow"; arrow color
"cyan"; circle shaded "green" outline
"black";</b></font></p>
<p style="margin-top: 1em"><font color="#000000">Alternative
spellings are <b>colour</b>, <b>colored</b>,
<b>coloured</b>, and <b>outlined</b>.</font></p>
<p style="margin-top: 1em"><font color="#000000">Predefined
color names for <i>[gtn]roff</i>-based <b>pic</b>
implementations are defined in the device macro files, for
example <tt>ps.tmac</tt>; additional colors can be defined
with the <b>.defcolor</b> request (see the manual page of
GNU <i>troff</i>(1) for more details). Currently, color
support is not available at all in TeX mode.</font></p>
<p style="margin-top: 1em"><font color="#000000">The
<i>pic2plot</i>(1) carries with its own set of color names,
essentially those recognized by the X window system
with “grey” accepted as a variant of
“gray”.</font></p>
<p style="margin-top: 1em"><font color="#000000"><b>pic</b>
assumes that at the beginning of a picture both glyph and
fill color are set to the default value.</font></p>
<hr>
[ <a href="pic-5.html">prev</a> | <a href="pic-7.html">next</a> | <a href="pic.html">top</a> ]
<hr>
|