diff options
| author | tassaron | 2022-05-07 20:16:15 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-07 20:16:15 -0400 |
| commit | a7da80022b9d9c4f6e0c520b3c2efc7490d0f289 (patch) | |
| tree | 737a6adb12b306cbff79cfed8e1f17650069b38d /src/components/life.py | |
| parent | f8ec464747883db7783b74c1e85fdf836835edb1 (diff) | |
Add initial state to the grid - a Queen Bee Shuttle
I chose this one because it repeats forever, so the user gets a useable default setting for any length of video they want to make
Diffstat (limited to 'src/components/life.py')
| -rw-r--r-- | src/components/life.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/life.py b/src/components/life.py index 94704bc..ad6d744 100644 --- a/src/components/life.py +++ b/src/components/life.py @@ -16,7 +16,19 @@ class Component(Component): super().widget(*args) self.scale = 32 self.updateGridSize() - self.startingGrid = set() + # The initial grid: a "Queen Bee Shuttle" + # https://conwaylife.com/wiki/Queen_bee_shuttle + self.startingGrid = set([ + (3, 7), (3, 8), + (4, 7), (4, 8), + (8, 7), + (9, 6), (9, 8), + (10, 5), (10, 9), + (11, 6), (11, 7), (11, 8), + (12, 4), (12, 5), (12, 9), (12, 10), + (23, 6), (23, 7), + (24, 6), (24, 7) + ]) self.page.pushButton_pickImage.clicked.connect(self.pickImage) self.trackWidgets({ 'tickRate': self.page.spinBox_tickRate, |
