cardbits.icn: Procedure for constructing playing card images

link cardbits
August 14, 1996; Gregg M. Townsend
Requires: Version 9 graphics
See also: drawcard.icn

cardbits() returns an image for use in drawing playing cards.
____________________________________________________________

   cardbits() returns a bilevel image used by the drawcard() library
procedure (q.v.).  The image contains many small subimages for use in
constructing playing cards.  The images were collected from the
individual X bitmaps of the highly recommended "Spider" solitaire game
that is included as a sample program with the XView toolkit for
X-windows.

Overall structure: 160w x 432h bilevel bitmap.
     Red area: union of two rectangles (0,0,160,188) (0,404,117,28)
     Black area: union of two rectangles (0,188,160,216) (117,404,43,28)

Pips: 16x20 heart, diamond, club, spade at (144, {0,94,188,282})
                      rotated versions    at (144, {20,114,208,302})
Small pips:  9x14 H, D, C, S      at (148, {40,134,228,322})
                      rotated versions    at (148, {54,148,242,336})
Large spade, for the Ace: 43x56 at (117,376)
Ranks: 9x14 A,2,3,4,5,6,7,8,9,J,Q,K  at ({0,12,24,...,144}, 376)
                     rotated versions at ({0,12,24,...,144}, 390)
                     both rows duplicated at ({0,...144}, {404,418})
Faces: 48x94 images including 1-pixel-wide frame.
     Three columns (J,Q,K) of four rows (H,D,C,S)
     at ({0,48,96},{0,94,188,282}).

Source code | Program Library Page | Icon Home Page