ANN Nine Ball with Spin (English)
Jim Hurley
jhurley at infostations.com
Tue Apr 5 09:16:16 EDT 2005
>
>Message: 8
>Date: Mon, 04 Apr 2005 14:18:58 -0700
>From: Quentin Long <cubist at aol.com>
>Subject: Re: ANN Nine Ball with Spin (English)
>To: use-revolution at lists.runrev.com
>Message-ID: <4251AF42.3000804 at aol.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>sez jhurley at infostations.com
>> But I am off to something else right now--using Run Rev to create a
>> simulation contrasting global warming on Venus, Earth and Mars.
>> (Right now I need a tool for making circular arcs--like the Run Rev
>> pie shaped circular segments, but without the radial lines. May be a
>> job for Turtle Graphics.)
> Graphics can be filled or not-filled, and you can also adjust the
>thickness/color/etc of the line. THus, why not try a *non-filled* arc?
> Hope this helps...
Quentin,
Are you referring to the Run Rev arc using the circle graphic with
given arc length?
The problem I have with this is that I need an arc without radial
lines. But fortunately it is easy to build one in Run Rev.
Put the following into a button script:
on mouseUp
arc the loc of me,100,0,180+90,"myArc"
end mouseUp
on arc startPt, r, tStartAngle,tEndAngle,tName
put item 1 of startPt into x0
put item 2 of startPt into y0
repeat with a = tStartAngle to tEndAngle
put x0 + r*cos(a/180*pi) into x
put y0 + r* sin(a/180*pi) into y
put round(x),round(y) & cr after results
end repeat
set the points of graphic tName to results
end arc
And you will get a three-quarters circle, with radius 100, drawn
around the button. (You will need a line graphic with the name
"myArc." )
Following up on the "Poll the sum(7,9)" thread, I'm one of those who
can't add, so I always let Run Rev do it for me, hence the 180 +90.
Jim
More information about the use-livecode
mailing list