News:

11 March 2016 - Forum Rules

Main Menu

GameBoy Color Picker

Started by xenophile, May 04, 2022, 01:07:08 AM

Previous topic - Next topic

xenophile

Edit: Released https://www.romhacking.net/homebrew/166/

Showing off my quick project. Also, I'm still wondering whether to release it under Utilities or Homebrew, given that it's a rom meant to assist in rom hacking. Any thoughts?



I've started fooling around with colorizing my GameBoy rom hack. I knew choosing colors was going to be tricky, and yet it was even harder than I expected. After a bit of struggle I decided a color picker that ran on emulators or real hardware would be useful, so I wrote one.

Choose four colors at a time (GBC uses palettes of four colors). Edit the color components with the D-pad and see the 16 bit value you should manually enter into your source. Also shows a HTML color code but it's just scaling the value, not applying any of the many conversions for different hardware or emulators.

It was going to have more features (rudimentary copy and paste for instance, and sprites showing the selected component instead of just inverting it, cycling through different information display) but I'm happy with what made it and what I've cut. Except dithering... that might be interesting.

Tsukiyomaru0

Two things I'd say are:
1. Could make the UI a little bit fancier (even if it is just monochrome borders with boxes)
2. The ability to see the decimal values for each color channel could be interesting (either in the 0-31 ranger, or 0-248 with steps of 8)

xenophile

Quote from: Tsukiyomaru0 on May 04, 2022, 01:20:24 AM
Two things I'd say are:
1. Could make the UI a little bit fancier (even if it is just monochrome borders with boxes)

The lack of borders between the colors themselves is very intentional. I don't like that the font I found touches the colors so I might go looking for a different font.

Quote
2. The ability to see the decimal values for each color channel could be interesting (either in the 0-31 ranger, or 0-248 with steps of 8 )

What's your use case?

marc_max

This is amazing, thank you xenophile.

I wonder why no one did this before. It's a very simple yet useful tool.

xenophile

Quote from: marc_max on May 04, 2022, 04:56:35 PM
This is amazing, thank you xenophile.

I wonder why no one did this before. It's a very simple yet useful tool.

Thanks marc_max! It seemed like the kind of thing that would already exist, but no one I asked seemed to know of anything like it.

I'm cleaning up the code before release (it was also an excuse to play with gbdk, so the code is all in c) since I intend to release the code (and my code is usually horrible even for me to read). I've also swapped out the font, and will probably add a simple title screen.

xenophile

Game Boy Color Picker has been released.

It was a fun little project. Probably took me more hours than it'll save, but the hours it saves are frustrating and the hours it took were interesting.

Code still is a little bit of a mess, but it's been fully functional for about a week now and performance tweaking something that's already plenty fast was starting to get tedious.

I hope it's helpful.