mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 10:51:55 +00: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:
parent
c915d1bf58
commit
edd2bc85ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue