Random Color Scheme Generator is a program that generate random color schemes for dwarf fortress.
THE DOWNLOADVersion 1.8
http://www.4shared.com/file/0B3tDz6Ace/colors.htmlHow it works?PS:THIS IS IMPORTANT TO MAKE SURE YOU KNOW THE IDEA BEHIND THIS PROGRAM.
Default Dwarf fortress color scheme follow some rules:
1- A color can be made using the value 0 with or without 128.
2- A color can be made using the value 0 with or without 255.
3- A color can be made of the value 192 (this is the average of the values that doesn't appear on both rule 1 and 2 [128 and 255]).
The idea of my program is to select a new random value to each R, G and B of each color. The new random values range were selected in a way that its still related to the "DF color rules".
The entire point is that you can just open the program, roll some random color scheme with it and with that, spice up your DF with your own personal color scheme, that is not so different from original, following some logic and probably have some quality.
How it REALLY works?First the program will select one of the 4 randomization rules (more will probably be added later):
PS: When selecting the R, G, B value for black, each rule has 16.5% chance that the new value will be an random value between 0 and 7 instead of the randomized value. This extra rule exist because using colorfull colors to black usually result in a shitty thing.
THE RULES:
RULE 1:Each value (r, g and b) of each color will be selected at random:
If the old value is 0, the new value will be a random value between 0 and 42.
If the old value is 128, the new value will be a random value between 86 and 149.
If the old value is 192, the new value will be a random value between 171 and 213.
If the old value is 255, the new value will be a random value between 234 and 255.
The idea behind this rule here, is:
The random value generated by the program, can be any value between the original DF color value and 1/3 of the distance between itself and the next (or previous) original DF value.
So, as some example, the original DF value 0 can be any value between 0 and 42, because, 1/3 of the next original DF value (128) is 42.6666...
1/3 was selected instead of 1/2, because 1/2 would lead to situations like black being R63 G63 B63, while dark gray being R65 G65 B65. So it could lead to colors that are to similar to each other.
RULE 2:Each value (r, g and b) of each color will be selected at random:
If the old value is 0, the new value will be a random value between 0 and 21.
If the old value is 128, the new value will be a random value between 117 and 138.
If the old value is 192, the new value will be a random value between 181 and 202.
If the old value is 255, the new value will be a random value between 234 and 255.
The idea behind this rule 2, is that the each new value is selected between the same amount of possible random numbers, 22 possible numbers.
RULE 3:Each value (r, g and b) of each color will be selected at random:
This rule use a different randomization method:
Instead of
value = random number between X and Y
it uses
value = Z - 255 / (random number between X and Y)
This means that values close to the original value are way easier to get.
The possible colors are:
If the old value is 0, the new value will be a random value between 0 and 42.
If the old value is 128, the new value will be a random value between 80 and 144.
If the old value is 192, the new value will be a random value between 171 and 213.
If the old value is 255, the new value will be a random value between 239 and 255.
RULE 4:Each value (r, g and b) of each color will be selected at random:
This rule use a different randomization method:
Instead of
value = random number between X and Y
it uses
value = Z - 255 * (4 ^ (random number between X and Y))
This means that values close to the original value are way easier to get.
The possible colors are:
If the old value is 0, the new value will be a random value between 0 and 48.
If the old value is 128, the new value will be a random value between 80 and 144.
If the old value is 192, the new value will be a random value between 171 and 213.
If the old value is 255, the new value will be a random value between 239 and 255.
EXAMPLES