Functions

class Functions

copied from here: https://gist.github.com/colinrtwhite/c2966e0b8584b4cdf0a5b05786b20ae1 Documented: https://coil-kt.github.io/coil/recipes/#transforming-painters

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class ForwardingDrawInfo(val painter: Painter, val alpha: Float, val colorFilter: ColorFilter?)

Functions

Link copied to clipboard
fun forwardingPainter(painter: Painter, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, onDraw: DrawScope.(Functions.ForwardingDrawInfo) -> Unit = DefaultOnDraw): Painter

Create and return a new Painter that wraps painter with its alpha, colorFilter, or onDraw overwritten.