Damn this is a great tool ! well done !
Be careful, you're not using accurate Genesis palette.
Genesis palette contain the brightness levels for blue, green and red respectively. Possible values are 0, 2, 4, 6, 8, $A, $C and $E.
| 3-bit value | Brightness (0-255) | |
|---|---|---|
| 000 | 0 ($00) | |
| 001 | 52 ($34) | |
| 010 | 87 ($57) | |
| 011 | 116 ($74) | |
| 100 | 144 ($90) | |
| 101 | 172 ($AC) | |
| 110 | 206 ($CE) | |
| 111 | 255 ($FF) |
Also, if you could have a function that count the number of different tiles after qualetization, it would be greater than great !
Very well done and thank you for sharing.