1 .TH XScreenSaver 1 "24-Nov-97" "X Version 11"
3 blitspin - rotate a bitmap in an interesting way
6 [\-display \fIhost:display.screen\fP]
7 [\-foreground \fIcolor\fP] [\-background \fIcolor\fP] [\-window] [\-root]
8 [\-mono] [\-install] [\-visual \fIvisual\fP] [\-bitmap \fIfilename\fP]
9 [\-delay \fIusecs\fP] [\-delay2 \fIusecs\fP] [\-duration \fIsecs\fP]
11 The \fIblitspin\fP 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 \fBO(16*log2(N))\fP
16 blits of size NxN, with the limitation that the image must be square,
17 and the size must be a power of 2.
20 accepts the following options:
23 Draw on a newly-created window. This is the default.
26 Draw on the root window.
29 If on a color display, pretend we're on a monochrome display.
32 Install a private colormap for the window.
34 .B \-visual \fIvisual\fP
35 Specify which visual to use. Legal values are the name of a visual class,
36 or the id number (decimal or hex) of a specific visual.
38 .B \-bitmap \fIfilename\fP
39 The file name of a bitmap to rotate. It need not be square: it
40 will be padded with the background color. If unspecified or the
41 string \fI(default)\fP, a builtin bitmap is used.
43 If support for the \fIXPM\fP library was enabled at compile-time,
44 the specified file may be in \fIXPM\fP format as well as \fIXBM\fP, and
45 thus may be a color image.
47 The \fB*bitmapFilePath\fP resource will be searched if the bitmap
48 name is not a fully-qualified pathname.
51 If this option is specified, then the image which is spun will be grabbed
52 from the portion of the screen underlying the blitspin window, or from
53 the system's video input, or from a random file on disk, as indicated by
54 the \fIgrabDesktopImages\fP, \fIgrabVideoFrames\fP,
55 and \fIchooseRandomImages\fP options in the \fI~/.xscreensaver\fP file;
57 .BR xscreensaver-demo (1)
60 .B \-delay \fImicroseconds\fP
61 How long to delay between steps of the rotation process, in microseconds.
62 Default is 500000, one-half second.
64 .B \-duration \fIseconds\fP
65 How long to run before loading a new image. Default 120 seconds.
67 .B \-delay2 \fImicroseconds\fP
68 How long to delay between each 90-degree rotation, in microseconds.
69 Default is 500000, one-half second.
71 to get the default host and display number.
74 Display the current frame rate and CPU load.
77 to get the name of a resource file that overrides the global resources
78 stored in the RESOURCE_MANAGER property.
82 .BR xscreensaver-demo (1),
83 .BR xscreensaver-getimage (1)
85 Copyright \(co 1992, 1993, 1997, 2001 by Jamie Zawinski.
86 Permission to use, copy, modify, distribute, and sell this software and its
87 documentation for any purpose is hereby granted without fee, provided that
88 the above copyright notice appear in all copies and that both that copyright
89 notice and this permission notice appear in supporting documentation. No
90 representations are made about the suitability of this software for any
91 purpose. It is provided "as is" without express or implied warranty.
93 Jamie Zawinski <jwz@jwz.org>, 17-aug-92.
95 Based on SmallTalk code which appeared in the August 1981 issue of Byte