YASAN
04/25/2021, 4:05 PMColor
? It is val so cannot be modified. To change it I had to create my custom extension function:
fun Color.updateAlpha(newAlpha: Float) =
Color(red = red, blue = blue, green = green, colorSpace = colorSpace, alpha = newAlpha)
robnik
04/25/2021, 4:07 PMcopy
. Like: Color.Blue.copy(alpha = 0.5f)
YASAN
04/25/2021, 4:08 PMcopy
? Idk how I missed that 😧 thanksrobnik
04/25/2021, 8:04 PMAlbert Chang
04/25/2021, 11:52 PM