Fix Mixbus action fc83d044f8 & 65bda27d4 rebase ordering
[ardour.git] / scripts / s_group_color.lua
1 ardour { ["type"] = "Snippet", name = "Randomize Group Colors" }
2
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
9                 grp:set_rgba(rgba)
10         end
11 end end