s_colorWheelPi
global · ui
- Address
0x81d0d0· 4 bytes, up to0x81d0d3- Type
const float- Meaning
- Holds pi, which the colour wheel adds to the arc tangent of a pick offset
- Confidence
- verified, proof one
- Finding
- ui/colorselect#dragging
Finding: Dragging in ui: ColorSelect
A press inside the wheel's rectangle starts a wheel drag, inside the strip's a value drag, and the
press is applied at once. During a wheel drag each move sets the hue to the angle of the cursor
from the wheel's centre, (atan2 + π) in degrees, and the saturation to its distance in half
widths and half heights, at most 1; the wheel's corners count. During a value drag the value is
the cursor's height in the strip, clamped to 0 to 1. Each move redraws and runs OnColorSelect.
The derivation is in the doc.