Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

OHRRPG Colour Counter (Split from 'New OHRRPGCE palette...')

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner
View previous topic :: View next topic  
Author Message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sat Aug 22, 2009 2:21 am    Post subject: OHRRPG Colour Counter (Split from 'New OHRRPGCE palette...') Reply with quote

[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."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group