http://se.aminet.net/pub/X11/ftp.x.org/contrib/vms/xscreensaver-124.zip
[xscreensaver] / hacks / blitspin.hlp
1 1 BLITSPIN 
2 Rotate a bitmap in an interesting way
3
4 SYNOPSIS
5
6  $ blitspin [-display host:display.screen] [-foreground color] 
7             [-background color] [-window] [-root] [-mono] [-bitmap filename] 
8             [-delay usecs] [-delay2 usecs]
9
10 2 DESCRIPTION
11 The blitspin program repeatedly rotates a bitmap by 90 degrees by
12 using logical operations: the bitmap is divided into quadrants, and the
13 quadrants are shifted clockwise.  Then the same thing is done again with
14 progressively smaller quadrants, except that all sub-quadrants of a 
15 given size are rotated in parallel.  So this takes aO(16*log2(N)) 
16 blits of size NxN, with the limitation that the image must be square,
17 and the size must be a power of 2.
18
19 2 OPTIONS
20 blitspin accepts the following options:
21
22    -window
23 Draw on a newly-created window.  This is the default.
24
25    -root
26 Draw on the root window.
27
28    -mono 
29 If on a color display, pretend we're on a monochrome display.
30
31    -bitmap bitmap-name
32 The file name of a bitmap to rotate.  It need not be square: it 
33 will be padded with the background color.  If unspecified or the
34 string (default), a builtin bitmap is used.
35
36 If support for the XPM library was enabled at compile-time, 
37 the specified file may be in XPM format as well as XBM, and thus 
38 may be a color image.
39
40 The XPM*bitmapFilePath resource will be searched if the bitmap
41 name is not a fully-qualified pathname.
42
43 2 ENVIRONMENT
44
45    -delay microseconds
46 How long to delay between steps of the rotation process, in microseconds.
47 Default is 500000, one-half second.
48
49    -delay2 microseconds
50 How long to delay between each 90-degree rotation, in microseconds.
51 Default is 500000, one-half second.
52
53    DISPLAY
54 to get the default host and display number.
55
56    XENVIRONMENT
57 to get the name of a resource file that overrides the global resources
58 stored in the RESOURCE_MANAGER property.
59
60 2 COPYRIGHT
61 Copyright (co 1992, 1993 by Jamie Zawinski.  Permission to use, copy, modify, 
62 distribute, and sell this software and its documentation for any purpose is 
63 hereby granted without fee, provided that the above copyright notice appear 
64 in all copies and that both that copyright notice and this permission notice
65 appear in supporting documentation.  No representations are made about the 
66 suitability of this software for any purpose.  It is provided "as is" without
67 express or implied warranty.
68
69 2 AUTHOR
70 Jamie Zawinski <jwz@mcom.com>, 17-aug-92.
71
72 Based on SmallTalk code which appeared in the August 1981 issue of Byte
73 magazine.