4 XScreenSaver(1) XScreenSaver(1)
8 blitspin - rotate a bitmap in an interesting way
10 S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
11 b
\bbl
\bli
\bit
\bts
\bsp
\bpi
\bin
\bn [-display _
\bh_
\bo_
\bs_
\bt_
\b:_
\bd_
\bi_
\bs_
\bp_
\bl_
\ba_
\by_
\b._
\bs_
\bc_
\br_
\be_
\be_
\bn] [-foreground
12 _
\bc_
\bo_
\bl_
\bo_
\br] [-background _
\bc_
\bo_
\bl_
\bo_
\br] [-window] [-root] [-mono]
13 [-install] [-visual _
\bv_
\bi_
\bs_
\bu_
\ba_
\bl] [-bitmap _
\bf_
\bi_
\bl_
\be_
\bn_
\ba_
\bm_
\be] [-delay
14 _
\bu_
\bs_
\be_
\bc_
\bs] [-delay2 _
\bu_
\bs_
\be_
\bc_
\bs]
16 D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
17 The _
\bb_
\bl_
\bi_
\bt_
\bs_
\bp_
\bi_
\bn program repeatedly rotates a bitmap by 90
18 degrees by using logical operations: the bitmap is divided
19 into quadrants, and the quadrants are shifted clockwise.
20 Then the same thing is done again with progressively
21 smaller quadrants, except that all sub-quadrants of a
22 given size are rotated in parallel. So this takes
23 O
\bO(
\b(1
\b16
\b6*
\b*l
\blo
\bog
\bg2
\b2(
\b(N
\bN)
\b))
\b) blits of size NxN, with the limitation that
24 the image must be square, and the size must be a power of
27 O
\bOP
\bPT
\bTI
\bIO
\bON
\bNS
\bS
28 _
\bb_
\bl_
\bi_
\bt_
\bs_
\bp_
\bi_
\bn accepts the following options:
30 -
\b-w
\bwi
\bin
\bnd
\bdo
\bow
\bw Draw on a newly-created window. This is the
33 -
\b-r
\bro
\boo
\bot
\bt Draw on the root window.
35 -
\b-m
\bmo
\bon
\bno
\bo If on a color display, pretend we're on a
38 -
\b-i
\bin
\bns
\bst
\bta
\bal
\bll
\bl
39 Install a private colormap for the window.
41 -
\b-v
\bvi
\bis
\bsu
\bua
\bal
\bl _
\bv_
\bi_
\bs_
\bu_
\ba_
\bl
42 Specify which visual to use. Legal values are the
43 name of a visual class, or the id number (decimal
44 or hex) of a specific visual.
46 -
\b-b
\bbi
\bit
\btm
\bma
\bap
\bp _
\bf_
\bi_
\bl_
\be_
\bn_
\ba_
\bm_
\be
47 The file name of a bitmap to rotate. It need not
48 be square: it will be padded with the background
49 color. If unspecified or the string _
\b(_
\bd_
\be_
\bf_
\ba_
\bu_
\bl_
\bt_
\b), a
50 builtin bitmap is used.
52 If support for the _
\bX_
\bP_
\bM library was enabled at com-
53 pile-time, the specified file may be in _
\bX_
\bP_
\bM format
54 as well as _
\bX_
\bB_
\bM, and thus may be a color image.
56 The *
\b*b
\bbi
\bit
\btm
\bma
\bap
\bpF
\bFi
\bil
\ble
\beP
\bPa
\bat
\bth
\bh resource will be searched if
57 the bitmap name is not a fully-qualified pathname.
59 -
\b-g
\bgr
\bra
\bab
\bb-
\b-s
\bsc
\bcr
\bre
\bee
\ben
\bn
60 If this option is specified, then the image which
64 X Version 11 16-May-97 1
70 XScreenSaver(1) XScreenSaver(1)
73 is spun will be grabbed from the portion of the
74 screen underlying the blitspin window.
77 -
\b-d
\bde
\bel
\bla
\bay
\by m
\bmi
\bic
\bcr
\bro
\bos
\bse
\bec
\bco
\bon
\bnd
\bds
\bs
78 How long to delay between steps of the rotation
79 process, in microseconds. Default is 500000, one-
83 -
\b-d
\bde
\bel
\bla
\bay
\by2
\b2 m
\bmi
\bic
\bcr
\bro
\bos
\bse
\bec
\bco
\bon
\bnd
\bds
\bs
84 How long to delay between each 90-degree rotation,
85 in microseconds. Default is 500000, one-half sec-
86 ond. D
\bDI
\bIS
\bSP
\bPL
\bLA
\bAY
\bY to get the default host and display
89 E
\bEN
\bNV
\bVI
\bIR
\bRO
\bON
\bNM
\bME
\bEN
\bNT
\bT
90 X
\bXE
\bEN
\bNV
\bVI
\bIR
\bRO
\bON
\bNM
\bME
\bEN
\bNT
\bT to get the name of a resource file that over-
91 rides the global resources stored in the RESOURCE_MANAGER
94 S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
95 X
\bX(1), x
\bxs
\bsc
\bcr
\bre
\bee
\ben
\bns
\bsa
\bav
\bve
\ber
\br(1)
97 C
\bCO
\bOP
\bPY
\bYR
\bRI
\bIG
\bGH
\bHT
\bT
98 Copyright (C) 1992, 1993, 1997 by Jamie Zawinski. Permis-
99 sion to use, copy, modify, distribute, and sell this soft-
100 ware and its documentation for any purpose is hereby
101 granted without fee, provided that the above copyright
102 notice appear in all copies and that both that copyright
103 notice and this permission notice appear in supporting
104 documentation. No representations are made about the
105 suitability of this software for any purpose. It is pro-
106 vided "as is" without express or implied warranty.
108 A
\bAU
\bUT
\bTH
\bHO
\bOR
\bR
109 Jamie Zawinski <jwz@netscape.com>, 17-aug-92.
111 Based on SmallTalk code which appeared in the August 1981
112 issue of Byte magazine.
130 X Version 11 16-May-97 2