//qrcode-kotlin/qrcode.color/LinearGradientColorFunction

LinearGradientColorFunction

[common]
class LinearGradientColorFunction@JvmOverloadsconstructor(val startForegroundColor: Int, val endForegroundColor: Int, val backgroundColor: Int = Colors.WHITE, var vertical: Boolean = true) : QRCodeColorFunction

Constructors

   
LinearGradientColorFunction [common]
@JvmOverloads
constructor(startForegroundColor: Int, endForegroundColor: Int, backgroundColor: Int = Colors.WHITE, vertical: Boolean = true)

Properties

Name Summary
backgroundColor [common]
val backgroundColor: Int
endForegroundColor [common]
val endForegroundColor: Int
startForegroundColor [common]
val startForegroundColor: Int
vertical [common]
var vertical: Boolean

Functions

Name Summary
beforeRender [common]
open fun beforeRender(qrCode: QRCode, qrCodeGraphics: QRCodeGraphics)
Called before rendering starts, to setup something if needed
bg [common]
open override fun bg(row: Int, col: Int, qrCode: QRCode, qrCodeGraphics: QRCodeGraphics): Int
What is the background color
colorFn [common]
open fun colorFn(square: QRCodeSquare, qrCode: QRCode, qrCodeGraphics: QRCodeGraphics): Int
fg [common]
open override fun fg(row: Int, col: Int, qrCode: QRCode, qrCodeGraphics: QRCodeGraphics): Int
What is the foreground color
margin [common]
open override fun margin(row: Int, col: Int, qrCode: QRCode, qrCodeGraphics: QRCodeGraphics): Int
What is the margin color. Defaults to bg