1 ardour { ["type"] = "Snippet", name = "Randomize Group Colors" }
3 function factory () return function ()
4 for grb in Session:route_groups ():iter () do
5 local r = math.random (0, 255)
6 local g = math.random (0, 255)
7 local b = math.random (0, 255)
8 local rgba = (r << 24) + (g << 16) + (b << 8) + 0xff