TodePond / CellPond

surreal cellular automata
https://cellpond.cool
MIT License
286 stars 35 forks source link

Clarity upon colors #199

Closed 100xCode closed 2 years ago

100xCode commented 2 years ago

?

I understand well that a horizontal rectangle is a color value. If placed in the red value of a square they become red and the same goes for other colors. However, diamonds are confusing. In your CellPond video (which I watched), you made a reed using the -1 for every event window thing in the green slot, but I don't understand how the diamond works. Where is it copying its color from? And why did the entire application break when I put a diamond in the -1 slot of a diamond?

Thanks, 100xCode

TodePond commented 2 years ago

Where is it copying its color from?

It copies it from the cell that this cell is connected to. Remember my explanation for stamps? It's the same sort of thing :) By default, it connects to the cell in that position. But you can make it connect to a different cell by using a stamp.

For example, in this rule... the square with a diamond in copies the green value of the blue cell. image

But we can change this if we want! This one gets the green value of the red square instead, because we connect it with stamps. image

And why did the entire application break when I put a diamond in the -1 slot of a diamond?

That's a bug because I was in a rush when I was finishing the video haha :D Here's the issue for it: #181

100xCode commented 2 years ago

Thanks. Very helpful.