Also support d (diameter) param for Boxes.hole()

This commit is contained in:
Florian Festi 2017-11-15 17:18:01 +01:00
parent 36c0ec48fe
commit 90078049f8
1 changed files with 4 additions and 1 deletions

View File

@ -923,7 +923,7 @@ class Boxes:
@restore
@holeCol
def hole(self, x, y, r):
def hole(self, x, y, r=0.0, d=0.0):
"""
Draw a round hole
@ -932,6 +932,9 @@ class Boxes:
:param r: radius
"""
if not r:
r = d / 2.0
r -= self.burn
if r < 0:
r = 1E-9