Making a Sprite glow?

Monkey Forums/Monkey Programming/Making a Sprite glow?

Amon(Posted 2012) [#1]
Hi! With Photoshop I can do this by adding an outer glow. Is there a method though using code to make a sprite glow?

Reasons for me asking is I'm assuming if it is a coded glow then it can be more dynamic? This is something I would like.

Ta!


Samah(Posted 2012) [#2]
You could generate a glow mask at runtime using ReadPixels. Just generate and cache it when you load the image.


Amon(Posted 2012) [#3]
An example would be appreciated! Glow Mask? Truthfully I don't know how to begin implementing your suggestion.


Why0Why(Posted 2012) [#4]
Amon, check out Charlie's code:

http://www.monkeycoder.co.nz/Community/posts.php?topic=115