Drawing a "Centered" Circle

xbury.cs at clearstream.com xbury.cs at clearstream.com
Mon May 17 11:18:05 EDT 2004


Hi Rob,

on mousedown
   set the drawcentered to true
   set the circle's center 
   showcircle
  repeat while the mouse is down
     grab mouseloc
     from center of circle get X or Y max (or min) distance
   end repeat
   hide circle
end mousedown

something like that?
---------------------=---------------------
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465






































Rob Cozens <rcozens at pon.net>
Sent by: use-revolution-bounces at lists.runrev.com
17.05.2004 17:05
Please respond to How to use Revolution

 
        To:     How to use Revolution <use-revolution at lists.runrev.com>

        cc: 

        Subject:        Drawing a "Centered" Circle

.








Hi All,

Has anyone given any thought or scripting time to exploring what it
would take to draw a circle that is centered over the loc of the
original mouseDown?

In the course of public presentation I would like to project a map
and allow people in the audience to identify an area on the map by
drawing a circle around it with a mouse.

Using Transcript's oval tool the loc & shape of a circle change as
the mouseLoc changes.  I want the effect of a perfect circle growing
or shrinking around a fixed point as the mouse recedes from or
approaches that point.

At the moment, the approach I'm contemplating involves:

1.  Drawing a minimal circle on mouseDown
2.  Changing the oval tool's ink (or visible property?) to make a new
invisible oval.
3.  On mouseMove change the width & height of the original circle to
the distance between the mouseDown loc and the current mouse loc
4.  On mouseUp delete the invisible oval.

Anyone have any comments or a better solution to offer?

TIA.
--

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution






Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


More information about the use-livecode mailing list