I’m making a new thread since the other one doesn’t seem to get traction
Does someone has an elegant way of doing sprite outline, with customizable thickness and color, that would work with flipbook animation and can be triggered from a message?
Lot of ask, but i feel like it would cover this for most people, and maybe even make it as a full fledged feature in the future?
The method @88.josh mentions should work in many cases. However, it will not work as expected if you have “holes” in the sprite. E.g. imagine a filled circle with a hole in the middle (e.g. a donut), then the scale of 1.1 won’t work, since you want to make outline on the inside of the hole.
In 2d, I would probably have a shader (either for the sprite, or as a postprocessing step) that samples around each pixel in NxN matrix, where N is the number of pixels you wish the outline to be.
Well, the link you referenced was doing exactly what I was suggesting. What’s missing there is a better way to calculate the pixel size, so that the sampling gets done correctly.