go: clamp color values to a max of 255