05-28-2006, 09:20 PM
I posted the following in the QuickBASIC forum, and RyanKelly suggested I post it here for an answer, so, here is my post:
Posted: Sat May 27, 2006 9:24 pm Post subject: The DRAW statement in QB and in FB
--------------------------------------------------------------------------------
I wondered how the graphics statements behaved in QB vs. FB.
I chose SCREEN 12 for this little experiment.
The CIRCLE statement seems to work identically in QB and FB.
For the DRAW statement, I ran this program in QB first:
which draws a small, right triangle up and to the left just 50 pixels from the center of the screen, which is 640 wide by 480 high.
The same program, run in FB, draws the triangle about four times as large, and at the top and left. I got the QB program to match the FB results by using a scale factor of 15 in QB (the default in QB is 4), by changing the DRAS statement to:
[code]DRAW "S15 B H50 R10U10G10"
Curiously, using this new line in FB gives the identical result as not entereing the S15! Could it be that FB uses a default of S15, while QB's is S4?
Posted: Sat May 27, 2006 9:24 pm Post subject: The DRAW statement in QB and in FB
--------------------------------------------------------------------------------
I wondered how the graphics statements behaved in QB vs. FB.
I chose SCREEN 12 for this little experiment.
The CIRCLE statement seems to work identically in QB and FB.
For the DRAW statement, I ran this program in QB first:
Code:
SCREEN 12
CLS
DRAW "B H50 R10U10G10"
WHILE INKEY$="":WEND
which draws a small, right triangle up and to the left just 50 pixels from the center of the screen, which is 640 wide by 480 high.
The same program, run in FB, draws the triangle about four times as large, and at the top and left. I got the QB program to match the FB results by using a scale factor of 15 in QB (the default in QB is 4), by changing the DRAS statement to:
[code]DRAW "S15 B H50 R10U10G10"
Curiously, using this new line in FB gives the identical result as not entereing the S15! Could it be that FB uses a default of S15, while QB's is S4?