Created
May 23, 2023 12:27
-
-
Save V-Abhilash-1999/ef5443447c03cd885098f20a24a8e1f1 to your computer and use it in GitHub Desktop.
SatVal Shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val rgb = AndroidColor.HSVToColor(floatArrayOf(hue, 1f, 1f)) | |
val satShader = LinearGradient( | |
satValPanel.left, satValPanel.top, satValPanel.right, satValPanel.top, | |
-0x1, rgb, Shader.TileMode.CLAMP | |
) | |
val valShader = LinearGradient( | |
satValPanel.left, satValPanel.top, satValPanel.left, satValPanel.bottom, | |
-0x1, -0x1000000, Shader.TileMode.CLAMP | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment