mirror of
https://github.com/slavfox/Cozette.git
synced 2026-03-11 08:54:33 +00:00
Hopefully make sample render right
This commit is contained in:
parent
a71afce2a7
commit
07e98eebfb
3 changed files with 7 additions and 3 deletions
|
|
@ -253,9 +253,8 @@ def expand(sample_path: Path, margin: int = 40, color: str = "#282c34"):
|
|||
|
||||
def add_margins(sample_path: Path, color: str = "#282c34"):
|
||||
im: Image.Image = Image.open(sample_path).convert("RGB")
|
||||
new_w = round((im.height / 10) * 16)
|
||||
im.load()
|
||||
new_im = ImageOps.pad(
|
||||
im, (new_w, im.height), method=Image.NEAREST, color=color
|
||||
im, (im.width * 2, im.height), method=Image.NEAREST, color=color
|
||||
)
|
||||
new_im.save(sample_path)
|
||||
|
|
|
|||
BIN
img/sample.png
BIN
img/sample.png
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 7.7 KiB |
|
|
@ -5,20 +5,25 @@ $BLUE$┏━━━━━━━━━━━━━━━━━━━━━━━
|
|||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ $WHITE$A B C D E F G H I J K L M $BLUE$│
|
||||
│ $WHITE$N O P Q R S T U V W X Y Z $BLUE$│
|
||||
╞═══════════════════════════╡
|
||||
│ 1 2 3 4 5 6 7 8 9 0 │
|
||||
╞═══════════════════════════╡
|
||||
│ $WHITE$a b c d e f g h i j k l m $BLUE$│
|
||||
│ $WHITE$n o p q r s t u v w x y z $BLUE$│
|
||||
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┤
|
||||
│ $RED$() [] {} <> ? / \ : " ' ;$BLUE$ │
|
||||
│ $RED$! @ # $ % ^ & * _ = + - |$BLUE$ │
|
||||
│ , . ` ~$BLUE$ │
|
||||
╰───────────────────────────╯
|
||||
$YELLOW$
|
||||
$FG$╔═══════════════╗
|
||||
|
||||
$BLUE$│ $FG$╔═══════════════╗
|
||||
$BLUE$└──$FG$║ $GREEN$✓ ✔ $YELLOW$✕ ✖ $MAGENTA$✗ ✘ $FG$ ║$BLUE$▒
|
||||
$FG$║ $BLUE$ $FG$║$BLUE$▒
|
||||
$FG$╚═══════════════╝$BLUE$▒
|
||||
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||
|
||||
|
||||
$MAGENTA$Pchnąć w tę łódź jeża lub
|
||||
ósm skrzyń fig.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue