Powershell script that takes in an array of hex color codes and converts them into their grayscale version using multiple methods.
Download the calculator.ps1 file.
To run the script use go into it's directory and run the following command.
./calculator.ps1 -colors <# <enter hex color here> #> -useAllThe script has a multitude of options.
accepts an array of strings, these are the colors that the script will parse.
flag to use avarage method. This uses the following formula:
flag to use luminosity method. This uses the following formula:
flag to use desaturation method. This uses the following formula:
flag to use the decomposition method and grab the highest value. This uses the following formula:
flag to use the decomposition method and grab the lowest value. This uses the following formula:
flag that tells the program to do all methods.