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 functions

Link copied to clipboard
operator fun Paint?.invoke(target: Target = Foreground, text: () -> StyledText): StyledText
operator fun Paint?.invoke(text: String, target: Target = Foreground): StyledText