PDA

View Full Version : 3 Byte RGB code calculator


glovemaster
07-22-2007, 11:25 AM
3 Byte RGB code calculator (http://www.theglovemaster.co.uk/mods/tools/RGBCalculator/RGBCalculator.zip)

This tool will calculate the code for the colour that you put in the sun fog values in the ARE file and the "tweakcolor" values in the GIT file. There might be a few more places, but thats only where i have needed to use them.
Click on the big title to download ^.

v1.7
Added a "Colour Select" feature that opens up the Windows ColourDialog form.

v1.4
Added an "About" Window, just to improve my programming skills, and added shortkeys to the menu items.

v1.3
Changed the Program completely and added an interface using C# (C-Sharp) for which i have to thank MagnusLL
for suggesting that i change from C++ which is alot more difficult for interfaces.

v1.2
Removed the alert window because it was pretty annoying, added checks to make sure your R,G and B values are correct.

v1.1
Added alert window and cropped code that was longer than it needed to be from the application.Comments to the source code added for those who are interested how it works ;)

Any suggestions are welcome.

A few basic colour codes:
White: 16777215
Red: 255
Green: 65280
Blue: 16711680

glovemaster
10-03-2007, 03:10 PM
Version 1.3 released, yes there were 2 versions before that but they were not really important updates.. Now the program has an interface! w00t! :P

-v1.3---------------------
Changed the Program completely and added an interface using C# (C-Sharp) for which i have to thank MagnusLL
for suggesting that i change from C++ which is alot more difficult for interfaces.
--------------------------

magnusll
10-04-2007, 05:34 AM
Cool, glad my suggestion has been useful.
Oh BTW, this is also the value you should use in the SunDiffuse and SunAmbient colors when you create scratch-built areas. So if you want to have the general area light of one particular color, this is the tool to use.

glovemaster
07-02-2008, 03:21 PM
Well, the day finally came when I needed to use this tool :lol: And I decided that it needed something to let you pick a colour, rather than guess how much red, green and blue is in turquoise. (Not that i was using that colour, I hate turquoise :p)

So I threw in a Colour Selector thing, so its far easier to use.