I am fancying up the output of one frame of my simulation. In particular, I decided to draw out a relevant background chemical. I used Cairo to execute about the only approach I am familiar with for such a problem: divide up the background into a fine mesh, and calculate the alpha (representing the strength of the chemical in a particular box) at each box separately. Here's what the background alone looks like when zoomed out:
And when zoomed in:
There are around 270k paths, each with 4 nodes. Total file size of the background is around 70 MB.
Simplifying paths doesn't do anything, because the paths are already super simple (just a box). I am hesitant to rasterize (which is about the only option I know of right now), so I wonder: are any other options?