forShader

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.