I am currently building a test game where an array is populated with colour values in the format of: "255, 255, 255" and at the moment I have an array that has 5 colours inside of it.
When the layout first loads, I am wanting to select a random colour from this array and then apply that to the background color property of a particular layer at index 0.
At the moment I have a global variable called: Color and on layout start I set its value to a randomly picked colour from the array like so: Array.At(random(Array.Width))
I then attempt to set the background colour of layer 0 to the variable, but nothing happens. My understanding is the layer background colour excepts a string of RGB values, but all I see is a consistent black background: no colour.
Any examples of choosing colours from an array and setting a layer background colour from a randomly picked value would be fantastic. Thank you in advance.