Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 812 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 812 Bytes

PowershellColors

Simple library to maintain a list of colors with a mapping for use in PowerShell.

Usage

# add the type to the PowerShell session
Add-Type -AssemblyName C:\path\to\PowershellColors.dll

# initialize a mapping object
$colors = New-Object PowershellColors.MappedColorPool[string] # [string] here specifies the mapping key type

# for excluding certain colors (colors are in range 0-15)
$colors = New-Object PowershellColors.MappedColorPool[string] -ArgumentList 0,1 # excludes the colors black and (dark) blue

Example

image

Color list for reference

image