Primary, refer to my previous comment. Secondary, line 16 has lack of argument. RGB function needs at least three arguments.