Hi all,
I am working in a script where I'd like to use some arrays... but I am having some issues on including the arrays into a loop. I hope someone can help.
In the code below I am initialising an array in to ways, the called option 2 does not work.
Would someone be able to help?
Thank you very much.
var c_fills = array.new_color(5)
// Initialize the array elements with progressively lighter shades of the fill color.
// Option 1
array.set(c_fills, 0, color.new(c_fillColor, 70))
array.set(c_fills, 1, color.new(c_fillColor, 75))
array.set(c_fills, 2, color.new(c_fillColor, 80))
array.set(c_fills, 3, color.new(c_fillColor, 85))
array.set(c_fills, 4, color.new(c_fillColor, 90))
// Option 2
transp = 70
for i = 0 to 4
array.set(c_fills, i, color.new(c_fillColor, transp))
transp := transp + 5