[comp.sys.mac.hypercard] writing XCMDs

alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) (05/02/88)

I've written an XCMD for HyperCard that does diagonal screen wipes. Although
I am not quite happy with it yet, I'd like to ask at this point if the following
is kosher under HyperCard:

Drawing into the current Grafport.

I do save the penState. Is this ok? I've only tried it on a II, and it works
fine, even under color.

Will this code break? Since there currently is no way to add in your own
visual effects, and the only way I have figured to get a bitmap of the
destination card ('go to next card' type thing) is to use the clipboard, and
lockScreen. Any suggestions?

Also, while I am at it, are there any requests for styles of visual effects
that I might try? I am planning to offer all four diagonal wipe directions,
and can easily add more.

My interface is as follows:

myWiper 1, "ffffffffffffffff"

The first arg is the number of ticks to use as a delay during the wipe,
effectively offering different speeds. The second arg is the pattern to
use for the wipe. A third arg will probably be inserted between these,
offering a numeric selector for wipe style (i.e. directions aren't yet
implemented...)
  Is there a nicer way? Can I do the following:

myWiper slowly, "ffffffffffffffff"

Will that be better? Offering say, 0 through 5 for tick delays?

Any ideas/comments are appreciated.

-------------------------------------------------------------------------------
-  Alexander M. Rosenberg  - INTERNET: alibaba@ucscb.ucsc.edu   - Yoyodyne    -
-  Crown College, UCSC     - UUCP:...!ucbvax!ucscc!ucscb!alibaba- Propulsion  -
-  Santa Cruz, CA 95064    - BITNET:alibaba%ucscb@ucscc.BITNET  - Systems     -
-  (408) 426-8869          - Disclaimer: Nobody is my employer  - :-)         -
-                          - so nobody cares what I say.        -             -