Assigning a color to the foreground layer

I cannot assign a color to the foreground layer though it works with texture. In the playground below, I am attempting to assign white color to my layer

Please let me know what I am doing wrong
thank you

Do you mean background color ?


Thank you, but that is not exactly what I am asking. I know that I can assign a background color to ADT, but I am wondering what color argument in layer’s constructor do. What should I do to see effect of color value that used in the layer’s constructor?

The color is multiplied with the texture, but can not be used with a texture. Wondering what the use case is ?


Got it! That is pretty useful if I want to adjust the texture’s color gamma. Thank you