mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 11:09:16 +02:00
Adjust cross_shade to have appearance more like in Unicode standard
We try to draw approximately seven diagonal lines per cell
This commit is contained in:
@@ -281,8 +281,8 @@ def cross_line(buf: SSByteArray, width: int, height: int, left: bool = True, lev
|
||||
|
||||
|
||||
@supersampled()
|
||||
def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 4) -> None:
|
||||
line_thickness = buf.supersample_factor * thickness(1)
|
||||
def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 2) -> None:
|
||||
line_thickness = width // 7
|
||||
delta = int(density_factor * line_thickness)
|
||||
|
||||
if rotate:
|
||||
|
||||
Reference in New Issue
Block a user