horizontalGradient
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.