Companion
object Companion
Functions
Link copied to clipboard
fun linearGradient(from: PdfColor, to: PdfColor, startX: Float = 0.0f, startY: Float = 0.0f, endX: Float, endY: Float): PdfPaint.LinearGradient
Two-stop linear gradient running from (startX, startY) to (endX, endY). Convenience for the common "fade between two colours" case.
Link copied to clipboard
fun radialGradient(from: PdfColor, to: PdfColor, centerX: Float, centerY: Float, radius: Float): PdfPaint.RadialGradient