Different default colors for RuleLoader depending on states

For general discussion about Conway's Game of Life.
Post Reply
User avatar
SuperSupermario24
Posts: 127
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 »

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

7b2o2bo4bobo$obob2o5bo2bo4bobo$2bo4bo2b2o3bo4b2o$2o2bobo3bob2obo3bo$ob
ob2obo3bobobob3obo$4bo6b2o3bobo2bo$2o2bo2b2o11bo!
User avatar
Andrew
Moderator
Posts: 1066
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Different default colors for RuleLoader depending on states

Post 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.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife and SpectreLife
User avatar
apg
Moderator
Posts: 3007
Joined: June 1st, 2009, 4:32 pm

Re: Different default colors for RuleLoader depending on states

Post by apg »

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: 1066
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Different default colors for RuleLoader depending on states

Post 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).
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife and SpectreLife
User avatar
SuperSupermario24
Posts: 127
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 »

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

7b2o2bo4bobo$obob2o5bo2bo4bobo$2bo4bo2b2o3bo4b2o$2o2bobo3bob2obo3bo$ob
ob2obo3bobobob3obo$4bo6b2o3bobo2bo$2o2bo2b2o11bo!
Post Reply