I need a "slider" in a circle

Richmond Mathewson richmondmathewson at gmail.com
Tue Jul 4 12:25:58 EDT 2017


Hmm . . .

I've made myself a jaggy circle by setting the points of an irregular 
polygon to a
sequence generated with a merry sine/cosine function . . .

Now it's "dead easy (whatever that's supposed to mean) to animate a 
"knob" round a "dial" as in:

move grc "KNOB" to the points of grc "DIAL"

BUT what would be a lot more fun would be a "knob" that could be moved 
by the end-user with a mouse (or a finger on a tablet)
by a sort of grab command, but in such a way that its movement was 
constrained to the points of the pathway graphic.

Thoughts . . .

Richmond.

On 7/4/17 5:20 pm, Todd Fabacher via use-livecode wrote:
> Hello Livecode group,
>
> I have a situation where we need a slider, not a straight line, but as a
> circle. I thing Scott Rossi did a demo of this at San Diego LC conference,
> but I can't find the code samples to check. I just need to restrict the
> movement to a circle when the user moves their finger. Maybe there is some
> kind of dial example somewhere???
>
> All I am looking to do is move the slider in the semi-circle to move the
> value forward or backwards.
>
> Thanks,
>
> Todd
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list