Qbasicnews.com
Arcs - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Arcs (/thread-9224.html)



Arcs - Zack - 04-28-2006

Code:
screen 13
const pi=3.14159
dim radians as double
do
    for angle=0 to 360
        radians=(pi/180)*angle
        circle (160,100),50,2,radians,radians+(pi/180)*90
        sleep 1
        circle (160,100),50,0,radians,radians+(pi/180)*90
        if inkey$<>"" then end
    next
loop
Why do the few pixels at the bottom of the circle-path not appear, and how can I fix it?
[EDIT] It doen't occur in 800x600 mode.


Arcs - phycowelder - 04-28-2006

sorry dude i cant sulve your problem!
but i do know that if you try it in screen 14 it works


Arcs - Zack - 04-28-2006

Yeah higher resolutions are fine with it. It seems to happen when radians is near or at 3pi/2 (270 degrees). I guess it's something with FB's math functions?


Arcs - phycowelder - 04-29-2006

screen 14 is the same as 13 res wize


Arcs - Anonymous - 04-29-2006

well, horizontal res anywho... vertical: screen 14 = 240, screen 13 = 200 ;]


Arcs - phycowelder - 04-29-2006

true! true! but its not a real dif!


Arcs - stylin - 04-29-2006

Quote:Yeah higher resolutions are fine with it. It seems to happen when radians is near or at 3pi/2 (270 degrees). I guess it's something with FB's math functions?
You should probably post this on freebasic.net forums. You may also want to check and see if it's a known issue first.


Arcs - Zack - 04-30-2006

Quote:true! true! but its not a real dif!
It sure as hell is. 40 pixels is signifigant - if the equation resolves to .49 at 200 pixels, 240 just might resolove to .6, which would round to 1 and register.
[Edit] Where do I find a list of known issues?


Arcs - Antoni Gual - 05-06-2006

http://sourceforge.net/tracker/?group_id=122342&atid=693196


Arcs - Zack - 05-07-2006

Yeah, I talked with counting_pine on the FB forums. Yay, I discovered a bug!