@@ -23,3 +23,60 @@ seq 0 $height | each {
23
23
$" ($row_data )(char newline )"
24
24
} | str join
25
25
26
+
27
+ # python:
28
+ #
29
+ # #!/usr/bin/env python
30
+ # from colors import *
31
+ #
32
+ # def iter_inc(incr, mult, it):
33
+ # return incr + mult * it
34
+ #
35
+ # height = 40
36
+ # width = 160
37
+ # stamp = "py"
38
+ #
39
+ # for line in range(0, height):
40
+ # row_data = ""
41
+ #
42
+ # for col in range(0, width):
43
+ # fgcolor = iter_inc(2, 2, col)
44
+ # if fgcolor > 200 and fgcolor < 210:
45
+ # row_data = row_data + color(stamp, bg='rgb(0, 0, %d)' % fgcolor)
46
+ # else:
47
+ # fg = fgcolor % 256
48
+ # row_data = row_data + color(' ', bg='rgb(0, 0, %d)' % fg)
49
+ #
50
+ # print(row_data)
51
+
52
+
53
+ # powershell:
54
+
55
+ # function Set-Cursor {
56
+ # [CmdletBinding()]
57
+ # param ([int] $x, [int] $y)
58
+ # $Host.UI.RawUI.CursorPosition = @{x = $x; y = $y }
59
+ # }
60
+ #
61
+ # function Get-Character {
62
+ # [CmdletBinding()]
63
+ # param ([int]$index)
64
+ # $mystring = ' Trevor Sullivan'
65
+ # return $index -ge ($mystring.Length) ? ' ' : $mystring[$index]
66
+ # }
67
+ #
68
+ # function main {
69
+ #
70
+ # for ($y = 0; $y -le ($host.ui.RawUI.BufferSize.Height - 1); $y++) {
71
+ # $Color = 25
72
+ # Set-Cursor -x $PSItem -y $y
73
+ # 0..($Host.UI.RawUI.BufferSize.Width - 1) | ForEach-Object {
74
+ # Write-Host -Object ("`e[48;2;0;0;$Color`m{0}" -f (Get-Character -Index $PSItem)) -NoNewline
75
+ # $Color += 2
76
+ # }
77
+ # }
78
+ # Start-Sleep -Seconds 5
79
+ # }
80
+ #
81
+ # main
82
+
0 commit comments