Color
public enum Color
The bg-color
parameter lets you set a backgroud color for the given image.
See Background Color
-
Hexadecimal valuet should be
3-digit
or6-digit
.Declaration
Swift
case hex(String)
-
Red
,Blue
,Green
value which defines the intensity of the corresponding color, with the value ranging anywhere between0
and255
for each.Declaration
Swift
case rgb(red: UInt, green: UInt, blue: UInt)
-
Red
,Blue
,Green
value which defines the intensity of the corresponding color, with the value ranging anywhere between0
and255
for each. Thealpha
value defines the transparency, with0.0
being fully transparent and1.0
being completely opaque.Declaration
Swift
case rgba(red: UInt, green: UInt, blue: UInt, alpha: Double)