Subj : Transparency when using frames/sprites
To   : art
From : Kirkman
Date : Sun Jun 15 2014 06:57 pm

 Re: Transparency when using frames/sprites
 By: art to Kirkman on Sun Jun 15 2014 07:27 pm

> Yes, frame.js can do transparency. I believe sprite.js can also be used for
> .BINs in order to do what you are asking. Have a look at the documentation
> within the comments for each of those files for transparency details.

I see frame.js allows frames to have a transparency property, which can be set
to true. The only explanation is "Do not display frame sectors where char ==
undefined."

Sprite.js by default sets its frames to transparent = true.

I guess what I'm still wondering about is how this actually works. So if I have
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 if I
render the characters individually in code, leaving some of them empty.


--Josh



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


---
� Synchronet