UNPKG
pixel-utils
Version:
latest (0.9.0)
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
0.0.3
0.0.2
Utility Functions for Pixels
github.com/DanielJDufour/pixel-utils
DanielJDufour/pixel-utils
pixel-utils
/
src
/
make-no-data-rgba-string
/
index.ts
4 lines
(3 loc)
•
189 B
text/typescript
View Raw
1
2
3
4
export
default
function
makeNoDataRgbaString<T
extends
number
|
string
>(
noDataValue
: T):
`rgba(
${T}
,
${T}
,
${T}
, 0)`
{
return
`rgba(
${noDataValue}
,
${noDataValue}
,
${noDataValue}
, 0)`
; }