Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Modules/Color/Color.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ class Style {
return $result
}
[String]WriteGradient([UInt32]$foreStart, [UInt32]$foreEnd, [UInt32]$backStart, [UInt32]$backEnd, [string]$val) {
if ($val.Length -eq 0 )
{
return "";
}
$foreRStart = ($foreStart -shr 16 -band 255)
$foreREnd = ($foreEnd -shr 16 -band 255)
$foreRDiff = ($foreREnd - $foreRStart) / $val.Length
Expand Down