prime31/UIToolkit — pull request #112 by diddledan (2012-05-24 18:10:02+00:00)
Title: UIColorPicker fix to select the _correct_ colour.

UIColorPicker was behaving incorrectly in selecting incorrect colours
on touch.

I added lots of Debug.Log() statements and figured out that the coordinates were being calculated relative to the middle of the texture rather than top-left (-127 to 128). Therefore I changed the clamp calls to use values which are incremented by half the width of the texture thereby causing the negative values to re-align at 0. With this fix the picker will report x and y coordinates from 0 to 256 (in the instance of the stock picker image) instead of the previous -127 to 128.