Figured I could get some neat effects by storing color data with 1 byte per pixel (xlibc palette), and then applying filters at display time. The result is the input data takes less space to store, but you'ld get more interesting results than just having the same palette all the time.
Anyways, to make it easy to test different effects I made this
http://z80.ukl.me/palette/
You can write JS code which runs on all the values from 0-255, and returns the high and low byte of the color separately. Click 'Regenerate' and the resulting palette will appear up top.
Fair warning: while the browser never GETs any external data, it does run whatever code is inside the box with eval() when you click the Regenerate button, so if you don't like that don't use it.
(also I'm not sure if this should go in the z80 programming section instead, but let me know one way or the other / move it if you need)
Anyways, to make it easy to test different effects I made this
http://z80.ukl.me/palette/
You can write JS code which runs on all the values from 0-255, and returns the high and low byte of the color separately. Click 'Regenerate' and the resulting palette will appear up top.
Fair warning: while the browser never GETs any external data, it does run whatever code is inside the box with eval() when you click the Regenerate button, so if you don't like that don't use it.
(also I'm not sure if this should go in the z80 programming section instead, but let me know one way or the other / move it if you need)