Skip to content

Commit

Permalink
fix y1 must be greater than or equal to y0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanbao2000 committed Jun 12, 2023
1 parent bb924d9 commit 6759feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def _locate_layer(self, beat_start: float, beat_end: float, offset: tuple[int, i
"""Locate layer rectangle position."""
return (
int(width_track_extra) + offset[0],
get_height_from_cartesian(self._h_single_column, height_bar_extra + height_beat * beat_start + offset[1]),
get_height_from_cartesian(self._h_single_column, height_bar_extra + height_beat * beat_end + offset[1]),
int(width_track_extra + width_track) + offset[0],
get_height_from_cartesian(self._h_single_column, height_bar_extra + height_beat * beat_end + offset[1])
get_height_from_cartesian(self._h_single_column, height_bar_extra + height_beat * beat_start + offset[1])
)

def _calc_skill_coverage_rate(self, beat_start: float, beat_end: float) -> float:
Expand Down

0 comments on commit 6759feb

Please sign in to comment.