If you check the JSON file, I removed the rgb().
When you run the debug mode, you will see the different of 2 array.
The bgColorEvents at 0 will be 10656511 instead rgb(255, 154, 162).
So I think the Color of the BG when your get from the bgColorArrayEditor is just a string "rgb(255, 154, 162)" not a color.
Then I break it to separate numbers R, G, B.
When get from bgColorArrayEditor with randomY, example ramdomY = 0:
- tokenat(bgColorArrayEditor.At(0,0) = "255, 154, 162"
- R : int("255, 154, 162", 0,",")) = 255
- G : int("255, 154, 162", 1,",")) = 154
- B : int("255, 154, 162", 2,",")) = 162
Then put all params inside the rgb() to make it a true color.
Hope this is clear for you!