Skip to content

Instantly share code, notes, and snippets.

@V-Abhilash-1999
Created May 23, 2023 12:28
Show Gist options
  • Save V-Abhilash-1999/0d041a0df6c8391fd9ba432c2454151d to your computer and use it in GitHub Desktop.
Save V-Abhilash-1999/0d041a0df6c8391fd9ba432c2454151d to your computer and use it in GitHub Desktop.
ComposeShader
canvas.drawRoundRect(
satValPanel,
cornerRadius,
cornerRadius,
Paint().apply {
shader = ComposeShader(
valShader,
satShader,
PorterDuff.Mode.MULTIPLY
)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment