Neocolours forums are 10 today!

For discussion of new pet colours- speculation and discussion of colours in general should be placed in New Features or Misc.
Silverevilchao
Posts: 1586
Joined: 07 Jan 2006 09:04 pm
Gender: Female
Human Avatar: 155477
Location: Home. :)
Contact:

Re: Neocolours forums are 10 today!

Post by Silverevilchao »

Re: the php script idea, here's something.

http://pastebin.com/JKm7tmJC

The aggregation code IS tested. I tested it with some Neopets images saved on my computer (complete with taking a directory name and searching for .pngs in it), and got some promising results. Didn't implement a save function because I'm unsure if, given the sheer number of pets and pet color combos, it should be saved within an SQL table or a JSON file (the latter might be too big and too slow to rifle through). No saving, no actual code for comparisons to write or test. :| Sorry. The code's probably a little weird because I decided to be a genius and write in 20 mins at 2 in the morning.
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests