getting r, g and b components of a Color and fixes set_viewport arguments

To avoid warnings, you should replace the `a` with `_` to mark it as unused.