MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

How can I set a dynamic global via a Locator

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118646] How can I set a dynamic global via a Locator
  • From: "Christopher O. Young" <cy56 at comcast.net>
  • Date: Thu, 5 May 2011 05:26:20 -0400 (EDT)

This works, outputting the value set by the draggable locator point. But I
have to initialize s as a point first. I'm not sure why.

s = {0, 0}

Dynamic[s]


Graphics[
 Locator[Dynamic[s]]
]



  • Prev by Date: how to apply Position repeatedly without a loop?
  • Next by Date: Re: and color via PlotStyle
  • Previous by thread: Re: how to apply Position repeatedly without a loop?
  • Next by thread: How can I set a dynamic global via a Locator