It looks like you're new here. If you want to get involved, click one of these buttons!
I want to do something like this
icon = image(32, 32)
— do a bunch of icon:set(...)
...
I want only the dots that I set to be displayed. Everything else is transparent, meaning I can sprite(icon, ...)
on any background color and only the dots I set get drawn over the background. How can I do that?
Comments
This will create a transparent PNG with a red circle in the center
This creates an icon by using a 2D array to set pixel colors.
Here’s an example just randomly punching holes in a sprite. @Kolosso I wasn’t going to post this since you put an example out sooner, but these are kind of different anyways.
You can also make icons with shaders, but that might be more difficult depending on your abilities.
@tsukit It really depends on what you're trying to make.
Thanks guys!