I've written a math code that does some pretty things, and outputs its data in a text file. Id like to now write a visualizer. Thus, I would simply read through my file, and have an array, normalized to say 0-1023. Is there a way that I can take this 2D array, lets say 400 by 400 elements, and plot a 400 by 400 pixel window on the screen, with the values 0 being black and the highest being the brightest of some color?
Ie, is there a library (or maybe something built in I don't know about) for plotting pixels on the screen and selecting their colors?
I would really like this to run on both linux and windows if possible.
Thanks a lot,