Posts: 3,616
Threads: 287
Joined: Jan 2003
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.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 121
Threads: 21
Joined: Oct 2005
sorry dude i cant sulve your problem!
but i do know that if you try it in screen 14 it works
t is better to error on the side of caution
than the side of haste!!!
Posts: 3,616
Threads: 287
Joined: Jan 2003
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?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 121
Threads: 21
Joined: Oct 2005
screen 14 is the same as 13 res wize
t is better to error on the side of caution
than the side of haste!!!
well, horizontal res anywho... vertical: screen 14 = 240, screen 13 = 200 ;]
Posts: 121
Threads: 21
Joined: Oct 2005
true! true! but its not a real dif!
t is better to error on the side of caution
than the side of haste!!!
Posts: 324
Threads: 12
Joined: Nov 2005
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.
stylin:
Posts: 3,616
Threads: 287
Joined: Jan 2003
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?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 1,407
Threads: 117
Joined: Dec 2002
Posts: 3,616
Threads: 287
Joined: Jan 2003
Yeah, I talked with counting_pine on the FB forums. Yay, I discovered a bug!
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.