color1
WARNING: the following code will NOT behave as expected:
val colorToSet = rgba(...)
myGradient.color1 = colorToSet
assert(myGradient.color1 === colorToSet) // this will fail!Content copied to clipboard
this is due to how gradient colors are implemented. use the equals operator instead (==) to compare colors.