- added bbox_int()

- use bbox_int()
- changed colors of tracks
This commit is contained in:
2024-07-04 21:51:27 +02:00
parent 9ee75a21ef
commit 4ba56d593d
2 changed files with 17 additions and 6 deletions
+8
View File
@@ -25,6 +25,14 @@ def bbox_round(src):
return res
def bbox_int(src):
res = ()
for s in src:
res += (int(s),)
return res
def bbox_center(bbox):
x = bbox[0] + bbox[2]/2
y = bbox[1] + bbox[3]/2