Prevent subpixel rendering via floor/ceil on left/right side of box drawn corners.
This commit is contained in:
parent
af9da2e495
commit
af4083a8b7
@ -478,11 +478,11 @@ def rectircle_equations(
|
||||
if left_quadrants:
|
||||
def x(t: float) -> float:
|
||||
xterm = 1 - pow(t, yexp)
|
||||
return cell_width - abs(a * pow(xterm, xexp)) - adjust_left_quadrant
|
||||
return math.floor(cell_width - abs(a * pow(xterm, xexp)) - adjust_left_quadrant)
|
||||
else:
|
||||
def x(t: float) -> float:
|
||||
xterm = 1 - pow(t, yexp)
|
||||
return abs(a * pow(xterm, xexp))
|
||||
return math.ceil(abs(a * pow(xterm, xexp)))
|
||||
|
||||
return x, y
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user