Re: Bits and Bytes: New Ranch flavour!

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tue, 29 Aug 2000 13:39:42 -0400, Brian Broker wrote:

>On Tue, 29 Aug 2000 09:14:13 -0700, Thomas Kerslake wrote:
>
>>In responce to my question about the black box around bitmaps, David Cuny
>wrote:
>>
>>Converts the bitmap into 'slices', and remove the 'invisible' color. For
>>example, consider the box in this bitmap. The outer border is color 1, the
>>inner border is color 2, and the inner color is color 0 (invisible).
>>
>>111111
>>122221
>>120021
>>120021
>>122221
>>111111
>>
>>This can be broken into the following:
>>
>>   { 0, 0, {1,1,1,1,1,1} }
>>   { 0, 1, {1,2,2,2,2,1} }
>>   { 0, 2, {1,2} }
>>   { 4, 2, {2,1} }
>>   { 0, 3, {1,2} }
>>   { 4, 3, {2,1} }
>>   { 0, 4, {1,2,2,2,2,1} }
>>   { 0, 5, {1,1,1,1,1,1} }
>>
>>The first two values indicate where to place the scanline, relative to the
>>origin. The sequence following represents the pixels to draw.
>>
>>-- David Cuny
>>
>>But, how do I do that? It's a little too complicated, I don't know much
>about bits and bytes. Can someone help simplify?
>>
>>Thnks
>>
>>Thomas
>
>Try searching the archives for 'sprite'.  Choose the technique that suits
>you best.
>
>-- Brian

Also search for 'transparent' because if you don't need anything fancy,
Caballero Rojo submitted a very small/simple solution that should be easy
enough to follow, even for a beginner...
( http://www.rapideuphoria.com/transp.zip )

-- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu