I was wondering if it is possible to make a square image round. I guess all i want to do is to "add a 50% border radius" to a sprite.
I really want to have them circular but i can't figure out a way to do it.
I can not make this sprite circular myself since the image will be fetched from Facebook ( profile picture ).
Any ideas? Is it maybe possible to add a CSS style to a sprite?
Develop games in your browser. Powerful, performant & highly capable.
You could use the different blend modes.
Check the C3 beginner examples > Blend modes.
You can then have another image with alpha to mask out the round shape.
I think destination out or destination in should work well in your case.
Will try this once i get back to the avatar part.
On the other hand you sure it's possible for C2? ( since you mentioned C3 in your post ) or was it a typo?
I mentioned C3 because you posted in the C3 section of the forum, but yes it is possible in C2 as well.