function filterColor(src, rgb) if type(src) ~= "table" or not rgb then return end local ret = {} for i, v in ipairs(src) do if v.color == rgb then ret[#ret+1] = v end end return retend