Quantcast
Channel: The PowerShell Guy : .net
Viewing all articles
Browse latest Browse all 10

Hey PowerShell Guy ! what is the Hex value of Chocolate ?

$
0
0

Didn't you always' wanted to know this ?

 

This time not a Hey Scripting Guy ! translation, but from a NG post answer Translating colors to hex and back   (color asked was Red actually ;-) ) :

PoSH> "{0:x}" -f ([drawing.Color]'Chocolate').ToArgb()                                                                  
ffd2691e                                                                                                                
PoSH>                                                                     

 

 For More Color Hex translations :

[enum]::GetNames([drawing.KnownColor]) |% {$_;"{0:x}" -f ([drawing.Color]$_).ToArgb()}

 

Enjoy,

Greetings /\/\o\/\/


Viewing all articles
Browse latest Browse all 10

Trending Articles