Qbasicnews.com

Full Version: Graphics statements in QB and in FB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
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?
Hi there Ralph. I know that DRAW has had some bugfixs recently. You could try out a 0.16 beta, and see if it works as expected. If not then the freebasic.net forum or the sourceforge page is the best place to post this, as i think v1ctor doesn't check QBN very often.