TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Aug 22, 2009 2:21 am Post subject: OHRRPG Colour Counter (Split from 'New OHRRPGCE palette...') |
|
|
[Simply cutting this post out from New OHRRPGCE palette in the works; no discussion requested]
James Paige wrote: | It would be interesting to write a tool that could go through all your backdrops, tilesets, and 16-color palettes and count how often each color is used. |
Oh James, how subtle your hints are:
Using Neo's just-released NOHRIO, hopefully heralding a new generation of OHR utilities, I've done just that. UI colors are also counted towards uses. Also, it also scans the game for everywhere where each sprite set is used, to determine which palettes it's used with. Each palette-swapped spriteset is counted as a new sprite, and the number of pixels of each colour across all sprites are summed. Tileset and backdrop pixel counts are also summed independently.
However, the purpose of the program isn't to count pixels, but to gain familiarity with nohrio, with Numpy, and to provide examples to others and feedback to Neo.
http://tmc.castleparadox.com/ohr/colourcounter/colouruse.py
I might package it as an .exe if there's any demand.
Vikings:
The numbers are hard to glance at, so I added a graphical representation. The bar lengths are not proportional to the number of pixels; they are scaled to exaggerate lower values.
A surprising amount of bright red. That second orange/brown ramp is hardly used, nor are the lighter pastels.
Here's Wandering Hamster:
Interesting patterns. Also, from the palette spectrum (which graphs total pixels), you how the first 6 colour ramps in the old palette were choosen.
Remember that Wander has all those intro graphics in the tilesets, accounting for all the greys (which flooded out everything else on the bar display due to scaling). It's pretty surprising how many colours were never used at all!
Here's Powerstick Man: Extended Edition, Week 100
Insane! _________________ "It is so great it is insanely great." |
|