
-----------------------------------
rollerdude
Sat Mar 12, 2005 11:56 am

easier arc
-----------------------------------
earlier, i made a program that makes arcs, i was fiddling around when i found a better subroutine:

sind instead of sin


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

-----------------------------------
ssr
Sat Mar 12, 2005 12:53 pm


-----------------------------------
thats nice
but whats up with the arcs
soooo many piosts about them :D 
but thats nice code yes

-----------------------------------
AsianSensation
Sat Mar 12, 2005 2:16 pm


-----------------------------------
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
Mon May 02, 2005 2:13 pm

Re: easier arc
-----------------------------------
great idea.
Arcs get kinda boring dont ya think though
Great coding
 :twisted:
