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 or 6-digit.

    Declaration

    Swift

    case hex(String)
  • Red, Blue, Green value which defines the intensity of the corresponding color, with the value ranging anywhere between 0 and 255 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 between 0 and 255 for each. The alpha value defines the transparency, with 0.0 being fully transparent and 1.0 being completely opaque.

    Declaration

    Swift

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