I have a project using a particle engine in Java Swing. These particles use an image instead of a basic shape (the image is entirely black with a transparent background), and they share the image so memory is low. With the image (a BufferedImage) being shared, how could I have the particles have different colors?
I can make it work if I create a copy of a preloaded image and change the black to the color I want, but then each particle has its own image and it takes up a ton of memory.
Worst case scenario I'll probably switch to LWJGL or TWL, but I already have a lot of content in the program that was made prior to the particle engine that I would need to remake :/.