Package-level declarations
Functions
Link copied to clipboard
fun DynamicShader.Companion.component(component: Component, componentSize: Dp, checkeredArrangement: Boolean = true, tileXMode: Shader.TileMode = Shader.TileMode.REPEAT, tileYMode: Shader.TileMode = tileXMode): DynamicShader
A Dp version of DynamicShader.component.
Link copied to clipboard
fun DynamicShader.Companion.horizontalGradient(colors: Array<Color>, positions: FloatArray? = null): DynamicShader
Creates a DynamicShader with a horizontal gradient. colors houses the gradient colors, and positions specifies the color offsets (between 0 and 1), with null
producing an even distribution.
Link copied to clipboard
Converts this Brush to a DynamicShader.
Link copied to clipboard
fun DynamicShader.Companion.verticalGradient(colors: Array<Color>, positions: FloatArray? = null): DynamicShader
Creates a DynamicShader with a vertical gradient. colors houses the gradient colors, and positions specifies the color offsets (between 0 and 1), with null
producing an even distribution.