Functions/Data/Get-RGBA.ps1
Function Get-RGBA { [CmdletBinding()] Param ( # Color Name [Parameter(Mandatory=$true,ValueFromPipeline=$true)] [ValidateSet("lime","red","blue","aqua","magenta","yellow","green","maroon","navy","purple","olive","teal","gray","black","white")] [String] $ColorName ) Process { switch ($ColorName) { "lime" {"rgba(0,255,0,1)"} "red" {"rgba(255,0,0,1)"} "blue" {"rgba(0,0,255,1)"} "aqua" {"rgba(0,255,255,1)"} "magenta" {"rgba(255,0,255,1)"} "yellow" {"rgba(255,255,0,1)"} "green" {"rgba(0,128,0,1)"} "maroon" {"rgba(128,0,0,1)"} "navy" {"rgba(0,0,128,1)"} "purple" {"rgba(128,0,128,1)"} "olive" {"rgba(128,128,0,1)"} "teal" {"rgba(0,128,128,1)"} "gray" {"rgba(128,128,128,1)"} "black" {"rgba(0,0,0,1)"} "white" {"rgba(255,255,255,1)"} } } } |