two functions. one converts an integer to rgb values, the other one converts rgb into an integer.
kick401 - I think you do not know how to call a function that has more than one return argument. The code is fine as it is in that respect.
However, I do have a complaint with the total lack of help in this submission. Had there been some help, then this user might have been more able to understand how to call it properly.
plz remove the semicolon for the first two lines ,curR,curG lines. in the int2rgb file.
its returning only one value.