[games] Add partial RGB-to-HSL conversion

(currently only returns the 'hue' channel, and even for that it's
misbehaving... I'm not really sure why, unfortunately.)