easier arc
Author |
Message |
rollerdude
|
Posted: Sat Mar 12, 2005 11:56 am Post subject: easier arc |
|
|
earlier, i made a program that makes arcs, i was fiddling around when i found a better subroutine:
sind instead of sin
code: |
setscreen ("nocursor,noecho,graphics:300;200")
for i : 1 .. 300
Draw.Dot (i, round (199* sind (i/2)), black)
delay (10)
c+=1
end for
|
Draw.Dot(i:int,round(maxx-1:int * sind (i/2)),colour)
kinda understand?
know you don't need to fiddle around with decimals |
|
|
|
|
|
Sponsor Sponsor
|
|
|
ssr
|
Posted: Sat Mar 12, 2005 12:53 pm Post subject: (No subject) |
|
|
thats nice
but whats up with the arcs
soooo many piosts about them
but thats nice code yes |
|
|
|
|
|
AsianSensation
|
Posted: Sat Mar 12, 2005 2:16 pm Post subject: (No subject) |
|
|
sind uses degrees
sin uses real values, namely radian measurements. Those are the only difference.
When you are using sind, it's easier to use, because you are use to the Babylonian measurements of 360 degrees. sin uses radian measure such as pi/2, pi/4 and etc, etc. |
|
|
|
|
|
dann_west
|
Posted: Mon May 02, 2005 2:13 pm Post subject: Re: easier arc |
|
|
great idea.
Arcs get kinda boring dont ya think though
Great coding
|
|
|
|
|
|
|
|