Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. 1. Reduce source image to 13 colors of the NES palette.
  2. 2. Divide image into 8x8 squares.
  3. 3. For each tile, reduce to 4 colors (3 if black is not present).
  4. While doing so, keep track of the # of unique palette combinations & the tile indices they were originally found at.
  5. If this number ever exceeds 5:
  6. - Combine the first 4 tiles into a 16x16 block.
  7. - Count the total # of colors.
  8. - Reduce to 1 fewer.
  9. - Split back into tiles (make sure they retain the original indices)
  10. And restart the loop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement