Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Random Color Scheme Generator  (Read 4868 times)

exdeath

  • Bay Watcher
    • View Profile
Random Color Scheme Generator
« on: October 25, 2015, 03:38:08 pm »

Random Color Scheme Generator is a program that generate random color schemes for dwarf fortress.

THE DOWNLOAD
Version 1.8
http://www.4shared.com/file/0B3tDz6Ace/colors.html

How 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:
Spoiler (click to show/hide)

RULE 2:
Spoiler (click to show/hide)

RULE 3:
Spoiler (click to show/hide)

RULE 4:
Spoiler (click to show/hide)



EXAMPLES
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
« Last Edit: February 04, 2017, 08:26:35 pm by exdeath »
Logged

exdeath

  • Bay Watcher
    • View Profile
Re: Random Color Scheme Generator
« Reply #1 on: June 03, 2016, 02:26:46 pm »

New version
http://www.4shared.com/file/0B3tDz6Ace/colors.html
-Cleaned the code
-fixed some bugs
-removed one rule
-added rules 3 and 4
« Last Edit: February 04, 2017, 08:26:45 pm by exdeath »
Logged

CantaNope

  • Escaped Lunatic
    • View Profile
Re: Random Color Scheme Generator
« Reply #2 on: August 06, 2016, 10:23:54 am »

The links are broken now, dang...
Logged

exdeath

  • Bay Watcher
    • View Profile
Re: Random Color Scheme Generator
« Reply #3 on: August 07, 2016, 04:47:42 pm »

The links are broken now, dang...

Uploaded it on 4shared. Links will be up forever now.
Logged

Gwolfski

  • Bay Watcher
  • Strawberries!
    • View Profile
    • ignore pls!
Re: Random Color Scheme Generator
« Reply #4 on: August 22, 2016, 05:31:01 pm »

looks nice
Logged
Eventually when you go far enough the insane start becoming the sane

snow dwarf

  • Bay Watcher
  • Is always cold
    • View Profile
Re: Random Color Scheme Generator
« Reply #5 on: September 22, 2016, 06:55:28 am »

This could worki not only for DF. I think I might use It for generating random pixel art palettes. :)
Logged
Here at Bay12 we excel at Theoretical Biology. Need to know the value of Merbone? Check. Need to know the density of a thrown Fluffy Wambler? Check. Need to know how a walking Mushroom can theoretically talk? Check.

exdeath

  • Bay Watcher
    • View Profile
Re: Random Color Scheme Generator
« Reply #6 on: September 23, 2016, 07:33:11 am »

This could worki not only for DF. I think I might use It for generating random pixel art palettes. :)
Yes, this can work on this case.

But my program has a rule specifically made for DF.
The R value on the black color has 15% chance of "flipping a coin" and setting the value to 0 or 1, instead of selecting it on way the rule describe.
The same happens on G, and B values of the black color.
This was made because most of the time, if the color black is not something near black, the results will be shitty ones.
On a program made speficially for creating art palletes, you would skip this rule.

This kind of program could be made using other pallettes as a guideline too.


« Last Edit: September 23, 2016, 07:40:22 am by exdeath »
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Random Color Scheme Generator
« Reply #7 on: September 24, 2016, 12:17:58 pm »

I think mifki was working on a way to switch color schemes without a restart.  Combine the two and you can have your colors wandering around while you play.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

exdeath

  • Bay Watcher
    • View Profile
Re: Random Color Scheme Generator
« Reply #8 on: February 04, 2017, 08:28:42 pm »

New Version ( 1.8 )

-Changed rules 1, 2 and 3. Check rule descriptions at first post, to see how they work.

http://www.4shared.com/file/0B3tDz6Ace/colors.html
« Last Edit: March 14, 2017, 02:23:50 pm by exdeath »
Logged