I’m working on a game and I want to know if it possible trough coding to add a black outline to a Sprite.
Something like “Stroke” in Photoshop even when scalled down the image the stroke/outline will nicely adjust to the image.
Imagine for example ROTMG sprites without that black outline, and I add trough coding x1 Pixel Black Outline, wich will adjust nicely even if the sprite changes size for example from 60x60 to 30x30 or whatever, but will keep that nice 1px black outline.
So, is this possible? In JS
If yes, it is something complicated ?