From 52ae64d3c857de49bfd24e618f8dc03e8eabcf0d Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 23 Oct 2024 23:46:52 -0700 Subject: [PATCH] feat: Export-4bitCSS - Adding --Luma and --Contrast ( Fixes #94, Fixes #95 ) Also, changing brightness threshold to match iTermColorSchemes repo. Fixing inner function name. --- Commands/Export-4BitCSS.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/Export-4BitCSS.ps1 b/Commands/Export-4BitCSS.ps1 index a5217c97c..fd9c1cd7d 100644 --- a/Commands/Export-4BitCSS.ps1 +++ b/Commands/Export-4BitCSS.ps1 @@ -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