mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +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()
|
@supersampled()
|
||||||
def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 4) -> None:
|
def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 2) -> None:
|
||||||
line_thickness = buf.supersample_factor * thickness(1)
|
line_thickness = width // 7
|
||||||
delta = int(density_factor * line_thickness)
|
delta = int(density_factor * line_thickness)
|
||||||
|
|
||||||
if rotate:
|
if rotate:
|
||||||
|
|||||||
Reference in New Issue
Block a user