Different default colors for RuleLoader depending on states

For general discussion about Conway's Game of Life.
Post Reply
User avatar
SuperSupermario24
Posts: 121
Joined: July 22nd, 2014, 12:59 pm
Location: Within the infinite expanses of the Life universe

Different default colors for RuleLoader depending on states

Post by SuperSupermario24 » March 15th, 2016, 5:13 pm

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?

Code: Select all

bobo2b3o2b2o2bo3bobo$obobobo3bo2bobo3bobo$obobob2o2bo2bobo3bobo$o3bobo3bo2bobobobo$o3bob3o2b2o3bobo2bo!

User avatar
Andrew
Moderator
Posts: 933
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Different default colors for RuleLoader depending on states

Post by Andrew » March 15th, 2016, 6:19 pm

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.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
calcyman
Moderator
Posts: 2938
Joined: June 1st, 2009, 4:32 pm

Re: Different default colors for RuleLoader depending on states

Post by calcyman » March 15th, 2016, 7:08 pm

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.
What do you do with ill crystallographers? Take them to the mono-clinic!

User avatar
Andrew
Moderator
Posts: 933
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Different default colors for RuleLoader depending on states

Post by Andrew » March 15th, 2016, 8:40 pm

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).
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
SuperSupermario24
Posts: 121
Joined: July 22nd, 2014, 12:59 pm
Location: Within the infinite expanses of the Life universe

Re: Different default colors for RuleLoader depending on states

Post by SuperSupermario24 » March 16th, 2016, 6:01 pm

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.

Code: Select all

bobo2b3o2b2o2bo3bobo$obobobo3bo2bobo3bobo$obobob2o2bo2bobo3bobo$o3bobo3bo2bobobobo$o3bob3o2b2o3bobo2bo!

Post Reply