core-ktx / androidx.graphics / android.graphics.Shader

Extensions for android.graphics.Shader

transform

fun Shader.transform(block: Matrix.() -> Unit): Unit

Wrap the specified block in calls to Shader.getLocalMatrix and Shader.setLocalMatrix.