Hi,
how can I gradually draw a counture around some object or sprite with pixels (that
object doesn’t need to be rectangular).Also, that counture line needs to be like
independent object so I can blink it or make it dissapear gradually.
dekyco
Hi,
how can I gradually draw a counture around some object or sprite with pixels (that
object doesn’t need to be rectangular).Also, that counture line needs to be like
independent object so I can blink it or make it dissapear gradually.
dekyco
It might be easy to blit the sprite onto a surface representing your
outline four times at different offsets, like this:
OOO
OXO
OOO
becomes:
OXO
XOX
OXO
Then you would have to mask out the center, probably, unless the
outline will never be drawn without the sprite it originates from
being drawn over top of it.On Thu, Mar 25, 2010 at 11:58 AM, dekyco wrote:
Hi,
how can I gradually draw a counture around some object or sprite with pixels (that
object doesn’t need to be rectangular).Also, that counture line needs to be like
independent object so I can blink it or make it dissapear gradually.dekyco
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org