void setup() { clear(); disposable = context.GetObservable(0).DoubleSequence(slider.Value.Value).Subscribe(e => { draw.Put(e, Color.red); }); }
void TraceBasic(IInputObservable io) { io.OnBegin.Subscribe(e => { log(e.ToString()); draw.Put(e, Color.red); }).AddTo(disposables); io.OnMove.Subscribe(e => { log(e.ToString()); draw.Put(e, Color.black); }).AddTo(disposables); io.OnEnd.Subscribe(e => { log(e.ToString()); draw.Put(e, Color.yellow); }).AddTo(disposables); }
public static void DrawSwipeArrow(DrawTargetView draw, Vector2 pos, Vector2 vector, string msg) { draw.Put(pos, vector, Color.red, msg); }