ruby: make the sky color calculation linear (as per ref)