Door Games Unlimited

Welcome, Guest.


Subject: Transparency when using frames/sprites Date: Tue Jun 17 2014 13:59:53
From: Kirkman To: MCMLXXIX

  Re: Transparency when using frames/sprites
  By: MCMLXXIX to Kirkman on Tue Jun 17 2014 09:05 am

 >  > I guess what I'm still wondering about is how this actually works. So if 
 >  > a small rectangular frame filled with an ANSI or BIN file, nothing will
 >  > actually be transparent, because none of the characters will be undefined
 >  > right? I'm thinking the only way I could make use of the transparency is 
 >  > render the characters individually in code, leaving some of them empty.
 > 
 > that is correct, but you could apply a filter for a specific color (or speci
 > set of attributes) to your graphic after you load it into a frame by iterati
 > the contents as a 2D array and comparing the .attr property to whatever colo
 > you'd like to filter, and just set it to undefined if it matches.

That's a nice idea. I'll give that a shot.

--Josh



////--------------------------------------------------
BiC -=- http://breakintochat.com -=- bbs wiki and blog


---
 ■ Synchronet

Previous Message       Next Message
In Reply To: Transparency when using frames/sprites (MCMLXXIX)