Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
PSSlack
0.0.9
Private/Color-ToNumber.ps1
Function
Color-ToNumber
{
param
(
[System.Drawing.Color]
$Color
)
'#{0:X2}{1:X2}{2:X2}'
-f
$Color
.
R
,
$Color
.
G
,
$Color
.
B
}