Skip to content

Commit

Permalink
add more color scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Jan 11, 2024
1 parent 501e399 commit d57df00
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ps-color-scripts/colorscripts/dotx.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Write-Host @"
`e[01;30m ▚ `e[0;30m ▞ `e[01;31m ▚ `e[0;31m ▞ `e[01;32m ▚ `e[0;32m ▞ `e[01;33m ▚ `e[0;33m ▞ `e[01;34m ▚ `e[0;34m ▞ `e[01;35m ▚ `e[0;35m ▞ `e[01;36m ▚ `e[0;36m ▞ `e[01;37m ▚ `e[0;37m ▞
`e[01;30m ▞ `e[0;30m ▚ `e[01;31m ▞`e[0;31m ▚ `e[01;32m ▞ `e[0;32m ▚ `e[01;33m ▞ `e[0;33m ▚ `e[01;34m ▞ `e[0;34m ▚ `e[01;35m ▞ `e[0;35m ▚ `e[01;36m ▞ `e[0;36m ▚ `e[01;37m ▞ `e[0;37m ▚
"@
39 changes: 39 additions & 0 deletions ps-color-scripts/colorscripts/hearts.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
$f1="`e[30m"
$f2="`e[31m"
$f3="`e[32m"
$f4="`e[33m"
$f5="`e[34m"
$f6="`e[35m"

$fbright1="`e[90m"
$fbright2="`e[91m"
$fbright3="`e[92m"
$fbright4="`e[93m"
$fbright5="`e[94m"
$fbright6="`e[95m"

$bld="`e[1m"
$rst="`e[0m"

Write-Host @"
$f1 ▄▄ ▄▄ $f2 ▄▄ ▄▄ $f3 ▄▄ ▄▄ $f4 ▄▄ ▄▄ $f5 ▄▄ ▄▄ $f6 ▄▄ ▄▄
$f1▄█████▄ ▄█████▄ $f2▄█████▄ ▄█████▄ $f3▄█████▄ ▄█████▄ $f4▄█████▄ ▄█████▄ $f5▄█████▄ ▄█████▄ $f6▄█████▄ ▄█████▄
$f1███████▄▄███████ $f2███████▄▄███████ $f3███████▄▄███████ $f4███████▄▄███████ $f5███████▄▄███████ $f6███████▄▄███████
$f1████████████████ $f2████████████████ $f3████████████████ $f4████████████████ $f5████████████████ $f6████████████████
$f1████████████████ $f2████████████████ $f3████████████████ $f4████████████████ $f5████████████████ $f6████████████████
$f1████████████████ $f2████████████████ $f3████████████████ $f4████████████████ $f5████████████████ $f6████████████████
$f1 ████████████ $f2 ████████████ $f3 ████████████ $f4 ████████████ $f5 ████████████ $f6 ████████████
$f1 ████████ $f2 ████████ $f3 ████████ $f4 ████████ $f5 ████████ $f6 ████████
$f1 ████ $f2 ████ $f3 ████ $f4 ████ $f5 ████ $f6 ████ $bld
$f1 ▄▄ ▄▄ $f2 ▄▄ ▄▄ $f3 ▄▄ ▄▄ $f4 ▄▄ ▄▄ $f5 ▄▄ ▄▄ $f6 ▄▄ ▄▄
$fbright1▄█████▄ ▄█████▄ $fbright2▄█████▄ ▄█████▄ $fbright3▄█████▄ ▄█████▄ $fbright4▄█████▄ ▄█████▄ $fbright5▄█████▄ ▄█████▄ $fbright6▄█████▄ ▄█████▄
$fbright1███████▄▄███████ $fbright2███████▄▄███████ $fbright3███████▄▄███████ $fbright4███████▄▄███████ $fbright5███████▄▄███████ $fbright6███████▄▄███████
$fbright1████████████████ $fbright2████████████████ $fbright3████████████████ $fbright4████████████████ $fbright5████████████████ $fbright6████████████████
$fbright1████████████████ $fbright2████████████████ $fbright3████████████████ $fbright4████████████████ $fbright5████████████████ $fbright6████████████████
$fbright1████████████████ $fbright2████████████████ $fbright3████████████████ $fbright4████████████████ $fbright5████████████████ $fbright6████████████████
$fbright1 ████████████ $fbright2 ████████████ $fbright3 ████████████ $fbright4 ████████████ $fbright5 ████████████ $fbright6 ████████████
$fbright1 ████████ $fbright2 ████████ $fbright3 ████████ $fbright4 ████████ $fbright5 ████████ $fbright6 ████████
$fbright1 ████ $fbright2 ████ $fbright3 ████ $fbright4 ████ $fbright5 ████ $fbright6 ████ $rst
"@
16 changes: 16 additions & 0 deletions ps-color-scripts/colorscripts/hedgehogs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$esc = "`e["
$red = $esc + "31m"
$grn = $esc + "32m"
$ylw = $esc + "33m"
$blu = $esc + "34m"
$mag = $esc + "35m"
$cya = $esc + "36m"

Write-Host @"
$red ╷╽╽╽╽╽╽╽╽╽╷ $grn ╷╽╽╽╽╽╽╽╽╽╷ $ylw ╷╽╽╽╽╽╽╽╽╽╷ $blu ╷╽╽╽╽╽╽╽╽╽╷ $mag ╷╽╽╽╽╽╽╽╽╽╷ $cya ╷╽╽╽╽╽╽╽╽╽╷
$red ╽┃┃┃┃┃┃┃┃┃┃┃╽ $grn ╽┃┃┃┃┃┃┃┃┃┃┃╽ $ylw ╽┃┃┃┃┃┃┃┃┃┃┃╽ $blu ╽┃┃┃┃┃┃┃┃┃┃┃╽ $mag ╽┃┃┃┃┃┃┃┃┃┃┃╽ $cya ╽┃┃┃┃┃┃┃┃┃┃┃╽
$red ┪┃┃┃┃┃┃┃┃┃┃' .\ $grn /. '✿┃┃┃┃┃┃┃┃┃┢ $ylw ┪┃┃┃┃┃┃┃┃┃┃' .\ $blu /. '✿┃┃┃┃┃┃┃┃┃┢ $mag ┪┃┃┃┃┃┃┃┃┃┃' .\ $cya /. '✿┃┃┃┃┃┃┃┃┃┢
$red ╹┃┃┃┃┃┃┃┃⧓ ___• $grn •___ ┃┃┃┃┃┃┃┃┃╹ $ylw ╹┃┃┃┃┃┃┃┃⧓ ___• $blu •___ ┃┃┃┃┃┃┃┃┃╹ $mag ╹┃┃┃┃┃┃┃┃⧓ ___• $cya •___ ┃┃┃┃┃┃┃┃┃╹
"@
28 changes: 28 additions & 0 deletions ps-color-scripts/colorscripts/hex-blocks.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$colors = @(
"#000000", # Black
"#800000", # Red
"#008000", # Green
"#808000", # Yellow
"#000080", # Blue
"#800080", # Purple
"#008080", # Cyan
"#c0c0c0", # Light gray
"#808080", # Dark gray
"#ff0000", # Light red
"#00ff00", # Light green
"#ffff00", # Light yellow
"#0000ff", # Light blue
"#ff00ff", # Light purple
"#00ffff", # Light cyan
"#ffffff" # White
)

Write-Host
for ($i = 0; $i -lt 8; $i++) {
Write-Host -NoNewline "`e[$($i + 30)m $($colors[$i]) `u{2588}`u{2588} `e[0m"
}
Write-Host "`n"
for ($i = 8; $i -lt 16; $i++) {
Write-Host -NoNewline "`e[1;$($i + 22)m $($colors[$i]) `u{2588}`u{2588} `e[0m"
}
Write-Host "`n"
31 changes: 31 additions & 0 deletions ps-color-scripts/colorscripts/hex.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
$colors = @(
"#000000", # Black
"#800000", # Red
"#008000", # Green
"#808000", # Yellow
"#000080", # Blue
"#800080", # Purple
"#008080", # Cyan
"#c0c0c0", # Light gray
"#808080", # Dark gray
"#ff0000", # Light red
"#00ff00", # Light green
"#ffff00", # Light yellow
"#0000ff", # Light blue
"#ff00ff", # Light purple
"#00ffff", # Light cyan
"#ffffff" # White
)

Write-Host "`e[1;37m"
Write-Host " Black Red Green Yellow Blue Magenta Cyan White"
Write-Host "──────────────────────────────────────────────────────────────────────`e[0m"
for ($i = 0; $i -lt 8; $i++) {
Write-Host -NoNewline "`e[$($i + 30)m $($colors[$i]) `e[0m"
}
Write-Host "`n"
for ($i = 8; $i -lt 16; $i++) {
Write-Host -NoNewline "`e[1;$($i + 22)m $($colors[$i]) `e[0m"
}
Write-Host "`n"

20 changes: 20 additions & 0 deletions ps-color-scripts/colorscripts/tvs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$esc = "`e["
$f1 = $esc + "30m"
$f2 = $esc + "31m"
$f3 = $esc + "32m"
$f4 = $esc + "33m"
$f5 = $esc + "34m"
$f6 = $esc + "35m"

$bld = $esc + "1m"

Write-Host @"
$f1 ▀▄ ▄▀ $f2 ▀▄ ▄▀ $f3 ▀▄ ▄▀ $f4 ▀▄ ▄▀ $f5 ▀▄ ▄▀ $f6 ▀▄ ▄▀
$f1 ▄▄█▄█▄▄ $f2 ▄▄█▄█▄▄ $f3 ▄▄█▄█▄▄ $f4 ▄▄█▄█▄▄ $f5 ▄▄█▄█▄▄ $f6 ▄▄█▄█▄▄
$f1$w██████$f1██ $f2$w██████$f2██ $f3$w██████$f3██ $f4$w██████$f4██ $f5$w██████$f5██ $f6$w██████$f6██
$f1$w██████$f1██ $f2$w██████$f2██ $f3$w██████$f3██ $f4$w██████$f4██ $f5$w██████$f5██ $f6$w██████$f6██
$f1$w██████$f1██ $f2$w██████$f2██ $f3$w██████$f3██ $f4$w██████$f4██ $f5$w██████$f5██ $f6$w██████$f6██
$f1 ▀▀▀▀▀▀▀ $f2 ▀▀▀▀▀▀▀ $f3 ▀▀▀▀▀▀▀ $f4 ▀▀▀▀▀▀▀ $f5 ▀▀▀▀▀▀▀ $f6 ▀▀▀▀▀▀▀ $bld
"@
56 changes: 56 additions & 0 deletions ps-color-scripts/colorscripts/unowns.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
$unowns = @(
@(
' ▀█▀▀▀█▀ ',
' ▄▀▀▀▄ ',
' ▀▄ ▀ ▄▀ ',
' ▀█▀ ',
' ▄█▄▄▄▄ '
), @(
' █▄ █ ',
' █ ▀▄▀▀▀▄ █ ',
' █ ▀▄ ▀ ▄▀ █ ',
' █ ▀▀▀ ▀▄█ ',
' ▀ ▀ '
), @(
' ▀▀▀█▀▀▀ ',
' ▄▀▀▀▄ ',
' ▀▄ ▀ ▄▀ ',
' ▀▀▀ ',
' '
), @(
' ▀▄ ▄▀ ',
' ▀▄▀▀▀▄▀ ',
' ▀▄ ▀ ▄▀ ',
' ▄▀ ▀▀▀ ▀▄ ',
' ▀ ▀ '
), @(
' █▀▀▄ ',
' ▄▀▀▀▄ ▀▄ ',
' ▀▄ ▀ ▄▀ █ ',
' ▀▀▀ ▄▀ ',
' ▀▀▀ '
), @(
' ▀▄ ▄▀ ',
' ▄▀▀▀▄ ',
' ▀▄ ▀ ▄▀ ',
' ▀█▀ ',
' ▄▀▄ '
)
)

foreach ($mode in @('normal', 'bold')) {
$unowns = Get-Random -InputObject $unowns -Count $unowns.Count
if ($mode -eq 'bold') {
Write-Host "`e[1m"
}

for ($line_number = 0; $line_number -lt 5; $line_number++) {
$line = ''
for ($color_number = 0; $color_number -lt 6; $color_number++) {
$line += "`e[03$($color_number + 1)m$($unowns[$color_number][$line_number])"
}
Write-Host $line
}
}

Write-Host "`e[0m"

0 comments on commit d57df00

Please sign in to comment.