Private/Show-Logo.ps1
|
#!/usr/bin/env pwsh # Auto-generated by PX2PS 2025.12.29 # Source: Deck.px (66x21) # Generated: 2026-02-28 09:34:40 # Enable Virtual Terminal Processing for ANSI colors (Windows PowerShell 5.1 compatibility) if ($PSVersionTable.PSVersion.Major -le 5 -and $env:OS -eq 'Windows_NT') { try { Add-Type -TypeDefinition @" using System; using System.Runtime.InteropServices; public class VTConsole { [DllImport("kernel32.dll", SetLastError = true)] public static extern IntPtr GetStdHandle(int nStdHandle); [DllImport("kernel32.dll", SetLastError = true)] public static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint lpMode); [DllImport("kernel32.dll", SetLastError = true)] public static extern bool SetConsoleMode(IntPtr hConsoleHandle, uint dwMode); public static void EnableVT() { IntPtr handle = GetStdHandle(-11); uint mode; GetConsoleMode(handle, out mode); SetConsoleMode(handle, mode | 0x4); } } "@ -ErrorAction SilentlyContinue [VTConsole]::EnableVT() } catch { # VT processing may already be enabled or not available } } $ESC = [char]27 $LowerHalfBlock = [char]0x2584 function Get-TrueColorFg { param([int]$R, [int]$G, [int]$B) return "$ESC[38;2;${R};${G};${B}m" } function Get-TrueColorBg { param([int]$R, [int]$G, [int]$B) return "$ESC[48;2;${R};${G};${B}m" } Write-Host '' Write-Host 'Thank you for choosing:' $width = 66 $height = 21 $pixels = @( @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(238,215,197,255), @(238,215,197,255), @(238,215,197,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(168,147,123,255), @(168,147,123,255), @(168,147,123,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,0), @(0,0,0,0), @(0,0,0,0), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255), @(0,0,0,255) ) $oddHeight = ($height % 2) -eq 1 $startY = if ($oddHeight) { -1 } else { 0 } $endY = if ($oddHeight) { $height - 1 } else { $height } for ($y = $startY; $y -lt $endY; $y += 2) { $line = "" for ($x = 0; $x -lt $width; $x++) { $topY = $y $bottomY = $y + 1 if ($topY -lt 0) { $topPixel = $null } else { $topIdx = ($topY * $width) + $x $topPixel = if ($topIdx -lt $pixels.Count) { $pixels[$topIdx] } else { @(0, 0, 0, 0) } } $bottomIdx = ($bottomY * $width) + $x $bottomPixel = if ($bottomIdx -lt $pixels.Count) { $pixels[$bottomIdx] } else { @(0, 0, 0, 0) } $botR = if ($bottomPixel[3] -lt 32) { 0 } else { $bottomPixel[0] } $botG = if ($bottomPixel[3] -lt 32) { 0 } else { $bottomPixel[1] } $botB = if ($bottomPixel[3] -lt 32) { 0 } else { $bottomPixel[2] } if ($null -eq $topPixel) { $fg = Get-TrueColorFg -R $botR -G $botG -B $botB $line += "${fg}$LowerHalfBlock" } else { $topR = if ($topPixel[3] -lt 32) { 0 } else { $topPixel[0] } $topG = if ($topPixel[3] -lt 32) { 0 } else { $topPixel[1] } $topB = if ($topPixel[3] -lt 32) { 0 } else { $topPixel[2] } $bg = Get-TrueColorBg -R $topR -G $topG -B $topB $fg = Get-TrueColorFg -R $botR -G $botG -B $botB $line += "${bg}${fg}$LowerHalfBlock" } } $line += "$ESC[0m$ESC[K" Write-Host $line } Write-Host " by Jake Hildreth" Write-Host "" Write-Host "Try it now: Show-Deck -Path https://exampledeck.jakehildreth.com" |