Paint

abstract class Paint

Used to fill regions when drawing shapes on a Canvas.

Author

Nicholas Eddy

Inheritors

Properties

Link copied to clipboard
abstract val visible: Boolean

true if the Paint is visible. This could be false if the Paint's attributes (i.e. color) make it invisible if used for rendering. Returning false in such a case allows the rendering system to avoid unnecessary operations that won't be visible to the user.

Inherited properties

Link copied to clipboard

Creates a new Stroke with defaults from the given Paint.

Inherited functions

Link copied to clipboard
operator fun Paint?.invoke(target: Target = Foreground, text: () -> StyledText): StyledText
@JvmName(name = "invokeString")
operator fun Paint?.invoke(target: Target = Foreground, text: () -> String): StyledText
Link copied to clipboard
fun Paint.stroke(thickness: Double): Stroke

Creates a new Stroke with thickness from the given Paint.