Color

View as Markdown

Color

The bg-color parameter lets you set a backgroud color for the given image.

NameTypeDescription
hex(String) Color

Hexadecimal value should be 3-digit or 6-digit.

rgb(red: UInt, green: UInt, blue: UInt) Color

Red, Blue, Green value which defines the intensity of the corresponding color, with the value ranging anywhere between 0 and 255 for each.

rgba(red: UInt, green: UInt, blue: UInt, alpha: Double) Color

Red, Blue, Green value which defines the intensity of the corresponding color, with the value ranging anywhere between 0 and 255 for each. The alpha value defines the transparency, with 0.0 being fully transparent and 1.0 being completely opaque.