Package-level declarations

Types

Link copied to clipboard

Creates a DynamicShader out of a Brush.

Functions

Link copied to clipboard

Creates a ComposeShader out of two DynamicShaders by using a BlendMode.

Creates a ComposeShader out of two DynamicShaders by using a PorterDuff.Mode.

Link copied to clipboard

Creates a BrushShader using the given Brush.

Link copied to clipboard
fun DynamicShaders.fromComponent(component: Component, componentSize: Dp, checkeredArrangement: Boolean = true, tileXMode: Shader.TileMode = Shader.TileMode.REPEAT, tileYMode: Shader.TileMode = tileXMode): ComponentShader

Creates a ComponentShader out of the provided component.

Link copied to clipboard
fun horizontalGradient(colors: Array<Color>, positions: FloatArray? = null): DynamicShader

Creates a DynamicShader in the form of a horizontal gradient.

Link copied to clipboard
Link copied to clipboard
fun verticalGradient(colors: Array<Color>, positions: FloatArray? = null): DynamicShader

Creates a DynamicShader in the form of a vertical gradient.