If an off cell has 3 different rgb neighbors, it keeps off.Jeecorner28 wrote: November 1st, 2025, 4:32 am well, should I create my own OCA thread?
I had tried explaining how it works, but for unknown reasons it did not made it to the final post
If it has 2 different colors, 3 neighbors in its neighbors, it becomes the other color.
If it has only one color, 3 neighbors in its neighbors, become the same color
If an rgb cell has 2 different colors, 2 neighbors in its neighbors, it dies.
If an rgb cell has only one color, 2 neighbors in its neighbors, becomes same color.
If an rgb cell has 3 different colors, 3 neighbors in its neighbors, it dies.
If an rgb cell has 2 different colors, 3 neighbors in its neighbors, it keeps same.
If an rgb cell has only one color, 3 neighbors in its neighbors, it keeps same.
Code: Select all
x = 5, y = 4, rule = JeecornerRGBLife
A2.A$4.A$C3.A$.4A!
@RULE JeecornerRGBLife
@TABLE
n_states:4
neighborhood:Moore
symmetries:permute
var a = {0,1}
var b = {0,2}
var c = {0,3}
var d = {0,1,2,3}
var a1 = d
var a2 = d
var a3 = d
var a4 = d
var a5 = d
var a6 = d
var a7 = d
var a8 = d
a, 1,1,1,0,0,0,0,0, 1
d, 1,1,2,0,0,0,0,0, 3
d, 1,2,2,0,0,0,0,0, 3
b, 2,2,2,0,0,0,0,0, 2
d, 2,2,3,0,0,0,0,0, 1
d, 2,3,3,0,0,0,0,0, 1
c, 3,3,3,0,0,0,0,0, 3
d, 1,1,3,0,0,0,0,0, 2
d, 1,3,3,0,0,0,0,0, 2
1, 2,2,2,0,0,0,0,0, 3
1, 3,3,3,0,0,0,0,0, 2
2, 1,1,1,0,0,0,0,0, 3
2, 3,3,3,0,0,0,0,0, 1
3, 1,1,1,0,0,0,0,0, 2
3, 2,2,2,0,0,0,0,0, 1
1, 1,1,0,0,0,0,0,0, 1
1, 1,2,0,0,0,0,0,0, 3
1, 1,3,0,0,0,0,0,0, 2
1, 2,2,0,0,0,0,0,0, 3
1, 2,3,0,0,0,0,0,0, 0
1, 3,3,0,0,0,0,0,0, 2
2, 1,1,0,0,0,0,0,0, 3
2, 1,2,0,0,0,0,0,0, 2
2, 1,3,0,0,0,0,0,0, 0
2, 2,2,0,0,0,0,0,0, 2
2, 2,3,0,0,0,0,0,0, 1
2, 3,3,0,0,0,0,0,0, 1
3, 1,1,0,0,0,0,0,0, 2
3, 1,2,0,0,0,0,0,0, 0
3, 1,3,0,0,0,0,0,0, 2
3, 2,2,0,0,0,0,0,0, 1
3, 2,3,0,0,0,0,0,0, 1
3, 3,3,0,0,0,0,0,0, 3
d, a1,a3,a4,a5,a6,a7,a8,a2, 0
@COLORS
0 0 0 0
1 255 0 0
2 0 255 0
3 0 0 255
@NAMES
0 off
1 red
2 green
3 blue