Flashing two dots at different frequencies.
Ben
salemibehnam at gmail.com
Thu Dec 10 21:13:19 UTC 2009
Hello David,
Thank you for your responses.
I actually implemented the exact same approach in VB yesterday and it
is working nicely.
Best,
B.
On Dec 9, 7:21 pm, David McFarlane <mcfar... at msu.edu> wrote:
> Ben,
>
> Here is another "on the fly" approach (based on my experience with
> NetLogo at the start of this year). Think of each flashing dot as an
> object or "agent" with properties for on duration, off duration, current
> state (on or off), and clock time for its next change of state (you
> might do this with a User Defined Type, or with some clever use of the
> properties already built in to E-Prime display objects). Your event
> loop would then check the "next change" time of each active object
> against the current clock time. For each object whose "next change"
> time has been reached, it would toggle the object's state and update its
> "next change" time accordingly.
>
> You would still have to write your own event loop for E-Prime (in
> NetLogo this is built in).
>
> -- David McFarlane, Professional Faultfinder
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list