utils
This commit is contained in:
parent
1a2eb7a3e4
commit
ab8ab6f4fe
10
utils.py
10
utils.py
@ -1,6 +1,16 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import random
|
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():
|
def random_color():
|
||||||
red = random.uniform(0, 1)
|
red = random.uniform(0, 1)
|
||||||
green = random.uniform(0, 1)
|
green = random.uniform(0, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user