Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!decwrl!pa.dec.com!rust.zso.dec.com!shlump.nac.dec.com!pinbot.enet.dec.com!ervin From: ervin@pinbot.enet.dec.com (Joseph James Ervin) Newsgroups: comp.sys.handhelds Subject: HP48SX Screen Dissolver (DISS) Message-ID: <20652@shlump.nac.dec.com> Date: 1 Mar 91 15:11:17 GMT Sender: newsdaemon@shlump.nac.dec.com Reply-To: ervin@pinbot.enet.dec.com (Joseph James Ervin) Organization: Digital Equipment Corporation Lines: 59 Hello all, I have finally finished the first version of "DISS", my screen dissolver program. What is a "screen dissolver" you ask? The program takes two arguments: 2: real number (zero or one) 1: GROB (131x64) The program will do different things with the GROB depending on whether a 1 or a 0 is in level 2. If level 2 contains a 0, then the program will do a bit-wise dissolve of the GROB on level 1 into PICT. The idea here is that you would use DISS in a program after previously displaying some graphic image via PVIEW. When you execute DISS, the new graphic on level 1 will replace the graphic currently on the display 1 pixel at a time, in a random fashion. If a 1 is on level 2 when DISS is executed, then instead of doing a bit-wise dissolve, it will do what I call "tiling". In this mode of operation, the program will move random _nibbles_ from the level 1 GROB into PICT, rather than doing one bit at a time. The effect is slightly different, and it runs around 5 times as fast as the bit-wise dissolve (5 seconds for a bit-wise dissolve, and 1 second for tiling). I think both modes look pretty cool (of course). :-) Well, below is the code in ASC format. It is written in a combination of system RPL and machine language (like Bill Wickes ASC routines themselves), and there are no known bugs. When you ASC-> the code, you'll have a directory object in level 1. Just store this using any name you like. Then you'll probably want to go down into the directory you just created and copy the DISS program up into the home directory, so you can use it from any directory. I will be watching the conference dilligently for feedback, and ideas for improvement. (I'd love to see this used in TETRIS, for example). Enjoy! >>>Joe Ervin *************************CUT HERE*************************************** %%HP: T(3)A(D)F(.); "69A20FF7A000000000404494353540D9D20D4881D8A812BF8170140D9D208813 026AC130A503223030A50322301192004000A3D36D9D2044230C2A207200094E 66716C69646027425F4240244164716933A1B21301192038000A3D36D9D20442 30C2A207200094E66716C69646027425F4240244164716933A1B2130F7815322 301192004000A3D36D9D2044230C2A207200094E66716C696460205943445023 596A756933A1B21301192038000A3D36D9D2044230C2A207200094E66716C696 460205943445023596A756933A1B213032230AEC8111920F780032230CCD200D 1008F14660AF38A850B478F14660AF2DE109143818F09818F0981AF02174E78F B97601F56507147818F29818F2981AF08AF234FFF3094B9034FFF00D7AF01031 04AF230194B5030FAE581AF1381AF1AC2135AF014B0E6011B13381AF10C21331 3514FBED0E650E6ABED15D011CC6C6114C2818F220EF781AF0C81AF0B94FB6AE A819F2819F281AF0BDC808203DC0E60AE1960F1B6596042B6596092808208AEC 6620808201AEC6910808202AEC6C00808204AEC81AF1181AF1B8B224DE81AF1A C2135AF014B0E6011B13381AF10C213313514FBED0E650E6ABED15D081AF148A 860631F8F34150B2130B21309CE7"