home *** CD-ROM | disk | FTP | other *** search
- ************** ALL FILES IN THIS ARC FILE ARE PUBLIC DOMAIN ***************
- ************** AND MAY BE FREELY DISTRIBUTED FOR NON-PROFIT ***************
-
- I had some problems with another program like "brush" and wasn't able to
- create data for my graphic images drawn with DeluxPaint and Aegis Images.
- So "brush" was born.
- To use brush, type:
-
- brush <[filename]> <[dataname]> <[b] or [s]> [d]
-
- filename: meaning the IFF brushfile from DuluxPaint or .win from Aegis
- Images or any other probram that uses the IFF graphics format.
- dataname: the program labels your data UWORD dataname[]={
- b: for bob or s for sprite,
- d: for #defines (this one is an option)
-
- Entered exactly as above the output of brush will go to the CLI. I found this
- handy for examining the data before I write it to a file.
-
- To write it to a file just use re-direction. Example.....
-
- brush >outfilename filename dataname b
-
- I have included the "C" source for a bob that follows the bird animated
- mouse pointer. Please, keep in mind that this is just an example and not the
- best way to code for graphics data. It was just a quick and easy way to get
- everything together for the demo.
-
- Type this in exactly, at the command line:
-
- brush >insert.c demopic mydata b d
-
- A file insert.c will be created. For ease have bob.c in the same directory
- and compile and link.
-
- lc -ad -L bob
-
- The disadvantage of the above metheod used in bob.c is that all external
- initialized data will go to chip ram, the structures and ect. If you are a
- beginner like me you may appreciate the easy way that the program compiles
- and links. If you are an expert I bow my head in shame.<grin>
-
- That's it for bobs except that large images with five planes will tax ram
- on a 512k machine. Very large ASCII files are created.
- Sprites use interleaved data. When you use the sprite option, your image
- must be 16 pixels or less in width and only 2 planes deep, else error
- message. In bob.c the bird data for the pointer animation was created with
- "brush".
- One final note on the Image struture and the vsprite initialization. The
- default from brush is to set PlanePick to all on and PlaneOnOff to zero. You
- may change these to whatever you may wish.
- If you have any suggestions for "brush" please let me know via the Lattice
- LBBS or Compuserve Amiga Forum.
-
- Bob Cox
- CompuServe 72017,663
- or
- Lattice Amiga Forum
-
-
-