Also, for the function to work you need these globals:
Then, after calling the function you can retrieve the value with these.
Global B2Cr,B2Cg,B2Cb
Then, after calling the function you can retrieve the value with these.
Global B2Cr,B2Cg,B2Cb