with Gradient Color
fun withGradientColor(startColor: Int, endColor: Int?, vertical: Boolean = true): QRCodeBuilder(source)
Uses a LinearGradientColorFunction to choose colors for the QRCode.
By default, the gradient will be a vertical one (top-to-bottom)
If endColor is null
, a DefaultColorFunction will be used instead.