vary column length

pull/1/head
Chris 2017-12-18 23:46:50 +00:00
parent e4ec99cfcd
commit 030b88142a
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ function New-Column {
[int]$script:head = 1 [int]$script:head = 1
[int]$script:fade = 0 [int]$script:fade = 0
[int]$script:fadelen = [math]::Abs($ylimit / 3) $randomLengthVariation = (1 + (get-random -min -30 -max 50)/100)
[int]$script:fadelen = [math]::Abs($ylimit / 3 * $randomLengthVariation)
$script:fadelen += (get-random -min 0 -max $fadelen) $script:fadelen += (get-random -min 0 -max $fadelen)