From ab8ab6f4febe6c6e27491c4693209352026fc147 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Wed, 15 Dec 2021 19:19:36 +0100 Subject: [PATCH] utils --- utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils.py b/utils.py index 39d481c..1207694 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,16 @@ #!/usr/bin/env python3 import random +def circle(ctx,x,y,r): + ctx.arc(x,y,r,0,pi*2.) + ctx.stroke() + + +def circle_fill(self,x,y,r): + self.ctx.arc(x,y,r,0,pi*2.) + self.ctx.fill() + + def random_color(): red = random.uniform(0, 1) green = random.uniform(0, 1)