Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Drawing filled circles

Author
Message
Happy Mongoose
23
Years of Service
User Offline
Joined: 16th Feb 2003
Location: United Kingdom
Posted: 30th May 2004 14:09
Is there a simple way of drawing a filled circle? The circle command only seems to draw outlines.

Please help!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 30th May 2004 15:20
Somebody made some commands for this, but I can't remember who it was.

Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 30th May 2004 18:00 Edited at: 30th May 2004 18:00
if you draw circles one inside another then you could fill the circle, but the default circle command is not very accurate and leaves gaps, you will need to use sin and cos or the line command to plot out a filled circle OR load a large circle bitmap as a sprite and use the scale/size or stretch sprite command to resize it and then paste it to the bitmap.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th May 2004 18:06
You can find the code here : http://developer.thegamecreators.com/?m=codebase_view_code&i=c6a376253a019691f5fcc97de1c5247a

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Happy Mongoose
23
Years of Service
User Offline
Joined: 16th Feb 2003
Location: United Kingdom
Posted: 2nd Jun 2004 13:42
Thanks everyone!

Login to post a reply

Server time is: 2026-06-09 13:55:58
Your offset time is: 2026-06-09 13:55:58