Companion

object Companion

Functions

Link copied to clipboard
inline fun forShader(crossinline block: (Size) -> Shader): HazeProgressive.Brush

Helper function for building a HazeProgressive.Brush with a Shader. The block is provided with the size of the content, allowing you to setup the shader as required.

Link copied to clipboard
fun horizontalGradient(easing: Easing = EaseIn, startX: Float = 0.0f, startIntensity: Float = 0.0f, endX: Float = Float.POSITIVE_INFINITY, endIntensity: Float = 1.0f, preferPerformance: Boolean = false): HazeProgressive.LinearGradient

A horizontal gradient effect.

Link copied to clipboard
fun verticalGradient(easing: Easing = EaseIn, startY: Float = 0.0f, startIntensity: Float = 0.0f, endY: Float = Float.POSITIVE_INFINITY, endIntensity: Float = 1.0f, preferPerformance: Boolean = false): HazeProgressive.LinearGradient

A vertical gradient effect.