Either the documentation or the constructor function is incorrect.  `Color` is defined here, but the function takes individual components.  I think the correct answer is that the function should be changed to take a `Color` object.