Skip to content

Commit

Permalink
feat: Export-4bitCSS - Adding --Luma and --Contrast ( Fixes #94, Fixes
Browse files Browse the repository at this point in the history
…#95 )

Also, changing brightness threshold to match iTermColorSchemes repo.  Fixing inner function name.
  • Loading branch information
James Brundage committed Oct 24, 2024
1 parent 8767568 commit 52ae64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Export-4BitCSS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function Export-4BitCSS
}
}

$jsonObject['Luma'] = $Background | Get-Luma
$jsonObject['Luma'] = $Background | GetLuma
$jsonObject['Contrast'] = [Math]::Abs(($foreground | GetLuma) - $jsonObject['Luma'])
$jsonObject = [PSCustomObject]$jsonObject

Expand Down

0 comments on commit 52ae64d

Please sign in to comment.