Skip to content
Snippets Groups Projects
Commit 179440cb authored by pippin's avatar pippin Committed by moon2
Browse files

harmonic demo: lightly tweak ui coordinates

By slightly extending the end points of the curves out we make use of the
screen circle as a clean clipping path.
parent f6f5e618
No related branches found
No related tags found
1 merge request!236harmonic demo: lightly tweak ui coordinates
Pipeline #7414 passed
......@@ -68,8 +68,8 @@ class HarmonicApp(Application):
note_name = self.tone_to_note_name(self.chord[0][top_petal])
note_name = "".join([x for x in note_name if not x.isdigit()])
pos = 95 * cmath.exp(tai * (top_petal - 2.5) / 5)
end_pos = pos * (1 - 0.3j) * 1.2
start_pos = pos * (1 + 0.3j) * 1.2
end_pos = pos * (1 - 0.3j) * 1.27
start_pos = pos * (1 + 0.3j) * 1.27
mid_pos = (start_pos + end_pos) / 8
fade = self.fade[top_petal]
if fade > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment