Step 8Great, but where's the data?
since we want to change the palette of images the first thing to do is generate a palette array, into which we place the palette that will replace the palette of the soon to be paletted image. palette palette palette, palette palette image.
using some loops that array gets filled up with black, red, yellow, and green.
then we cycle through the command line args, which hopefully contain a bunch of images. each image is resized, converted to 'indexed' (palette) mode, and given the new palette that was generated above.
(btw, you can mess with that palette a great deal to achieve a variety of final looks)
then using more of the bit masking method seen in step 6, two long strings are formed and written to a file for copy/pasting.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|










































