Is there a way to have an "alpha channel" or to set a color in an ANSI or a BIN as being transparent?
I'd like to be able to make a character that's not perfectly rectangle, and have the background show through, but I'm not sure if that's possible with the existing tools.
Re: Transparency when using frames/sprites
By: Kirkman to All on Sat Jun 14 2014 04:23 pm
Is there a way to have an "alpha channel" or to set a color in an ANSI or BIN as being transparent?
I'd like to be able to make a character that's not perfectly rectangle, a have the background show through, but I'm not sure if that's possible wit the existing tools.
16 colors, dude.
I'd like to be able to make a character that's not perfectly rectangle, a have the background show through, but I'm not sure if that's possible wit the existing tools.
16 colors, dude.
Obviously. But I guess what I'm getting at is, do any of the js libraries provide any way to mask a sprite so that a background character can show through an empty character in the sprite?
Is there a way to have an "alpha channel" or to set a color in an ANSI or
a BIN as being transparent?
Anyone tried something like that with frame.js or sprite.js?
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.
you could rig something up with creativity and ansimation
I see frame.js allows frames to have a transparency property, which can be s 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 h 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 render the characters individually in code, leaving some of them empty.
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.
you could rig something up with creativity and ansimation
Er, yes, I'm aware I am capable of creating my own custom solution. I'm seeking help with using any existing solutions in Synchronet, or with
others who may have already tackled similar siutuations previously.
Re: Transparency when using frames/sprites
By: Mro to Kirkman on Sat Jun 14 2014 10:41 pm
you could rig something up with creativity and ansimation
Er, yes, I'm aware I am capable of creating my own custom solution. I'm
well, fucking escuse me.
you're displaying ansi graphics and i suggest a method of displaying ansigraphics to pull off what you want. how stupid of me. guess i've been doing it wrong for the past 22 years.
whats your bbs url and how long have you ran a bbs?
"Er", what you are searching for is only an answer that you will like, not t right answer or one that is good enough.
you are dealing with text here. you are dealing with ansi graphics here. those are the confines in which you must work with.
whats your bbs url and how long have you ran a bbs?
you're displaying ansi graphics and i suggest a method of displaying ansigraphics to pull off what you want. how stupid of me. guess i've been doing it wrong for the past 22 years.
whats your bbs url and how long have you ran a bbs?
whats your bbs url and how long have you ran a bbs?
The following line, is hereby deemed to be hilarities:
whats your bbs url and how long have you ran a bbs?
Ahoy, dearest pukes!
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 01:09:58 |
Calls: | 336 |
Messages: | 115,388 |