From a7da80022b9d9c4f6e0c520b3c2efc7490d0f289 Mon Sep 17 00:00:00 2001 From: tassaron Date: Sat, 7 May 2022 20:16:15 -0400 Subject: 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 --- src/components/life.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3