diff options
Diffstat (limited to 'share/scripts/s_group_color.lua')
-rw-r--r-- | share/scripts/s_group_color.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/scripts/s_group_color.lua b/share/scripts/s_group_color.lua new file mode 100644 index 0000000000..d8c0785ed7 --- /dev/null +++ b/share/scripts/s_group_color.lua @@ -0,0 +1,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 |