Added configurable theta multiplier
This commit is contained in:
parent
0b1ce73964
commit
93bb03a53c
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ class spirographs:
|
||||||
self.bigRadius = 12
|
self.bigRadius = 12
|
||||||
self.smallRadius = 5
|
self.smallRadius = 5
|
||||||
self.distance = 4
|
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
|
self.stepSize = self.highestTheta / 4096
|
||||||
# update initial slider positions
|
# update initial slider positions
|
||||||
self.bigRadiusAdjustment = builder.get_object('bigRadiusAdjustment')
|
self.bigRadiusAdjustment = builder.get_object('bigRadiusAdjustment')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue