Skip to content
Snippets Groups Projects
Commit f473abf2 authored by q3k's avatar q3k
Browse files

py: harmonic/melodic: draw scope

parent 5cc4406e
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ class HarmonicApp(Application):
i = self.color_intensity
ctx.rgb(i, i, i).rectangle(-120, -120, 240, 240).fill()
ctx.rgb(0, 0, 0)
scope_draw(ctx)
ctx.fill()
def main_foreground(self):
if self.color_intensity > 0:
self.color_intensity -= self.color_intensity / 20
......
......@@ -81,6 +81,12 @@ class MelodicApp(Application):
def on_init(self):
init()
def on_draw(self, ctx):
ctx.rgb(1, 1, 1).rectangle(-120, -120, 240, 240).fill()
ctx.rgb(0, 0, 0)
scope_draw(ctx)
ctx.fill()
def on_foreground(self):
foreground()
......
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