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