Department of Computer
Science The University of Arizona Tucson, Arizona IPD234b April 9, 1996 http://www.cs.arizona.edu/icon/docs/ipd234.htm |
textured
or masked
. In the case of textured
,
pixels that correspond to bits set in the tile are drawn in the foreground
color and all other pixels are drawn in the background color. In the case
of stippled
, only foreground pixels are drawn, leaving the
background pixels as they were. The function Pattern(s)
sets
the tile to be used, where s
is a string that encodes the bits
of the pattern. See Reference 1 for the ways that tiles can be encoded as
strings. draws a 100-by-50 rectangle filled in the patternWAttrib("fillstyle=textured") Pattern(mesh) FilllRectangle(0, 0, 100, 50)
mesh
.q
with the meta key depressed terminates the current Penelope session.@
indicates the use of
the meta key. Letters are shown in uppercase for legibility, but they are
entered in lowercase. Thus, @Q
signifies typing q
with the meta key depressed.
penelope [file]where
file
is the name of a file that contains tile
specifications. If file
is omitted, Penelope starts
with a list that consists of a single 8-by-8 blank tile. If file
is given, the tile specifications contained in it are loaded into Penelope's
tile list and the first one becomes the current tile.untitled.tle
.
@U
(typing u
with the meta key depressed) before any other change is made to the
tile. @U
is a toggle; entering it again restores the transformation.
load
produces a dialog box in which the name of a file of tile
specifications can be given. These tiles replace the those in the current
tile list.
save
causes the current tile list to be saved in the current file.
save as
produces a dialog box in which the name of a file for saving
can be specified. The name given becomes the current file name for future
saves.
read
reads one tile specification from standard input and adds it
to the end of the tile list. The new tile becomes the current tile.
write
writes the current tile to standard output.
quit
terminates the Penelope session.
previous
changes the current tile to the previous tile in the list.
If there is no previous tile, a warning box is presented.
first
changes the current tile to the first tile in the list
last
changes the current tile to the last tile in the list.
goto
presents a dialog box in which to specify the number of the
tile to become the current tile. Negative values are relative to the end
of the list.
delete
deletes the current tile from the list. This operation cannot
be undone.
revert
restores the current tile to its state before any editing
or transformations were done to it. Reversion is not possible once the current
tile is changed to another tile.
copy
adds a copy of the current tile to the end of the tile list
and makes the new tile the current tile.
new
creates a new, blank tile. A dialog box is presented for specifying
the size of the new tile. The new tile is added to the end of the tile list
and becomes the current tile.
info
produces a box with information about the current tile, as in
The first line gives the name of the file corresponding to the tile list,
the position of the tile in the list and the total number of tiles in the
list. The second line gives information about the tile: its size, the number
of bits set in it, and its density (the percentage of set bits). The third
line gives the hexadecimal specification for the tile. If the specification
is too long to fit in the box, ellipses are show at the end. The line is
long enough to show the entire specification for a 12-by-12 square tile.
clear
deletes all tiles in the tile list and replaces them
by a single blank 8-by-8 tile. This operation cannot be undone.
reverse
reverses the order of the tiles in the tile list.
delete
range
presents a dialog box in which a range
of consecutive tiles to be deleted can be specified. This operation cannot
be undone.
sort
brings up a submenu of sorting operations:
by size sorts the tiles by the increasing number of bits in them.by bits
sorts the tiles by increasing order of the number of
bits set in them.
by notes
sorts the tiles in alphabetically increasing order by their
annotations. Tiles with no annotations come first.
pattern
displays the effect of the current tile as a pattern
in the view area, as in the example on page 2:
tile shows just the tile itself, as in2:1
produces this view for the tile shown above:
edit
produces a dialog box in which the annotation for the
current tile can be edited.
find
produces a dialog box for a string to be found in annotations.
If a tile with an annotation that contains this string is found, this tile
becomes the current tile. The search for an annotation begins with the tile
after the current tile and wraps around to the beginning of the tile list,
continuing up to the current tile if necessary.
#
,
as in
Blank lines and lines that begin with a8,#8142241818244281 # mesh
#
are ignored by Penelope
but are not preserved when its tile list is saved in a file.
,
IPD268, Department
of Computer Science, The University of Arizona, 1994.