LinearGradient


Brush implementation used to apply a linear gradient on a given Paint

Summary

Public functions

open Shader
Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

open Size

Return the intrinsic size of the Brush.

Cmn

Inherited functions

From androidx.compose.ui.graphics.ShaderBrush
final Unit
applyTo(size: Size, p: Paint, alpha: Float)
Cmn

Public functions

createShader

open fun createShader(size: Size): Shader

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

intrinsicSize

open val intrinsicSizeSize

Return the intrinsic size of the Brush. If the there is no intrinsic size (i.e. filling bounds with an arbitrary color) return Size.Unspecified. If there is no intrinsic size in a single dimension, return Size with Float.NaN in the desired dimension.