Need help with circle drawing

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
plad6111
Coder
Posts: 13
Joined: Wed Jul 12, 2006 3:28 pm

Need help with circle drawing

Post by plad6111 »

How do you draw a circle?
Antoni
Veteran
Posts: 132
Joined: Wed Jun 15, 2005 3:01 pm
Contact:

Post by Antoni »

Code: Select all

SCREEN 12   'or whatever GRAPHICS mode you want to use
CIRCLE (x.y),radius,color
X,Y are pixels from the top left corner of the screen, radius is in pixels too
bungytheworm
Veteran
Posts: 288
Joined: Sat Feb 18, 2006 4:02 pm

Post by bungytheworm »

Ok, open help and check CIRCLE.
bungytheworm
Veteran
Posts: 288
Joined: Sat Feb 18, 2006 4:02 pm

Post by bungytheworm »

Ok, antoni beated me like few seconds :D
plad6111
Coder
Posts: 13
Joined: Wed Jul 12, 2006 3:28 pm

Post by plad6111 »

But it doesn't work for me
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

Post your source code. Make sure to enclose your code with the

Code: Select all

[code]
[/code]

tags.
Image
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

Did you try for e.g.

Code: Select all

SCREEN 12
CIRCLE (100, 100) , 50
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
Post Reply