Page 1 of 1

Different default colors for RuleLoader depending on states

Posted: March 15th, 2016, 5:13 pm
by SuperSupermario24
This might sound weird, but I want to be able to make the default RuleLoader algorithm have white cells for 2-state rules but have the same red-to-yellow color gradient for multi-state rules. A lot of the 2-state RuleLoader rules people post don't change the default color, leaving a much harder-to-see (on my monitor at least) red color instead, making me have to go and manually change the color myself.
Basically, I want it to be able to recognize 2-state rules as a special case in terms of default colors. Is there any way that's possible, or for it to be an option in future updates?

Re: Different default colors for RuleLoader depending on states

Posted: March 15th, 2016, 6:19 pm
by Andrew
SuperSupermario24 wrote:A lot of the 2-state RuleLoader rules people post don't change the default color, leaving a much harder-to-see (on my monitor at least) red color instead...
Why not just change the default gradient in Prefs > Color to go from yellow to red? (I agree that red is not a good choice for state 1 cells. I really should have chosen yellow to red in the first place, but at least it's easy to change.)
Basically, I want it to be able to recognize 2-state rules as a special case in terms of default colors. Is there any way that's possible, or for it to be an option in future updates?
The color setting dialog is already rather complicated so I'm reluctant to make it even more so. The only way you could do what you want at the moment would be to write a script that does something like this:

- go through all the .rule files in your rules folder
- look at the number of states in the @TREE/@TABLE section
- if 2 and there's no @COLORS section then append a suitable section

A tip: if you do write such a script, include some sort of unique comment in the modified files so it's easy to remove/alter the changes.

Re: Different default colors for RuleLoader depending on states

Posted: March 15th, 2016, 7:08 pm
by calcyman
Just out of interest, why does Golly use (48, 48, 48) as the ground state colour? (0, 0, 0) is much more visually pleasing and shows a greater contrast against live cells.

Re: Different default colors for RuleLoader depending on states

Posted: March 15th, 2016, 8:40 pm
by Andrew
Just my personal preference. I think solid black makes the contrast too harsh. But you can always change that default in Prefs > Color (for each algo).

Re: Different default colors for RuleLoader depending on states

Posted: March 16th, 2016, 6:01 pm
by SuperSupermario24
Andrew wrote:
SuperSupermario24 wrote:A lot of the 2-state RuleLoader rules people post don't change the default color, leaving a much harder-to-see (on my monitor at least) red color instead...
Why not just change the default gradient in Prefs > Color to go from yellow to red? (I agree that red is not a good choice for state 1 cells. I really should have chosen yellow to red in the first place, but at least it's easy to change.
I guess I'll do that.