From 93bb03a53c80996f7053a781d18538992a2e05b1 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Tue, 19 Nov 2024 06:10:53 -0500 Subject: [PATCH] Added configurable theta multiplier --- spirographs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spirographs.py b/spirographs.py index 44d76a9..0fc2301 100644 --- a/spirographs.py +++ b/spirographs.py @@ -24,7 +24,8 @@ class spirographs: self.bigRadius = 12 self.smallRadius = 5 self.distance = 4 - self.highestTheta = (np.lcm(self.smallRadius, self.bigRadius)/self.bigRadius) * 2 * math.pi + self.rotations = 8 + self.highestTheta = (np.lcm(self.smallRadius, self.bigRadius)/self.bigRadius) * self.rotations * math.pi self.stepSize = self.highestTheta / 4096 # update initial slider positions self.bigRadiusAdjustment = builder.get_object('bigRadiusAdjustment')