Skip to content

sharunkumar/PowershellColors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages