This commit is contained in:
2026-07-08 12:09:57 +02:00
parent 87ae53d2f5
commit fe49f827ba
11 changed files with 50 additions and 35 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
## termimg demo full visual showcase of every rendering path.
## termimg demo - full visual showcase of every rendering path.
##
## Usage:
## nim c -r --path:src examples/demo.nim
@@ -107,7 +107,7 @@ proc renderSideBySide(images: openArray[seq[uint8]],
when isMainModule:
echo ""
echo "╭──────────────────────────────────────────────╮"
echo "│ termimg Full Demo │"
echo "│ termimg - Full Demo │"
echo "╰──────────────────────────────────────────────╯"
echo ""
@@ -165,7 +165,7 @@ when isMainModule:
opts.backgroundRgb, geo.columns, geo.sampleHeight)
stdout.write(outStr)
stdout.write("\n")
echo " ($1 $2 cols x $3 samples)" % [$density, $geo.columns, $geo.sampleHeight]
echo " ($1 - $2 cols x $3 samples)" % [$density, $geo.columns, $geo.sampleHeight]
echo ""
echo ""
@@ -183,7 +183,7 @@ when isMainModule:
opts.backgroundRgb, geo.columns, geo.sampleHeight, dither = true)
stdout.write(outStr)
stdout.write("\n")
echo " ($1 $2 px, $3 cols x $4 samples)" % [
echo " ($1 - $2 px, $3 cols x $4 samples)" % [
$fit, $geo.pixelWidth & "x" & $geo.pixelHeight,
$geo.columns, $geo.sampleHeight]
echo ""