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