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.

DarkBASIC Discussion / Filled circle - DBClassic

Author
Message
gearce
18
Years of Service
User Offline
Joined: 18th Dec 2006
Location: ex SCOTLAND, now MELBOURNE, Australia
Posted: 15th Jan 2007 06:15
Can anyone help. Is there any way to draw a filled circle in DBClassic?

gearce

LANG MAY YER LUM REEK
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 15th Jan 2007 08:13
This isn't a function I came up with but rather adapted from DBP and I can't remember who the origional idea came from, but here it is. Hope this helps

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 15th Jan 2007 20:01
Here's my version with a comparisation with Robot's code...



I changed the radius to 20 to give a more accurate comparisation.
No offence robot, but my code seems to be faster (and shorter)...


It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 15th Jan 2007 21:34
Quote: "No offence robot"

None Taken

Quote: "but my code seems to be faster (and shorter)..."

On my computer the code I posted is faster...No denying your code is shorter though.
gearce
18
Years of Service
User Offline
Joined: 18th Dec 2006
Location: ex SCOTLAND, now MELBOURNE, Australia
Posted: 15th Jan 2007 23:20
Thanks Robot and Sven B, I will give both a try

gearce

LANG MAY YER LUM REEK
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jan 2007 17:03
Maybe a small optimizing thingy...



It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
gearce
18
Years of Service
User Offline
Joined: 18th Dec 2006
Location: ex SCOTLAND, now MELBOURNE, Australia
Posted: 17th Jan 2007 23:12
Thanks again Sven B

gearce

LANG MAY YER LUM REEK

Login to post a reply

Server time is: 2025-05-26 03:46:14
Your offset time is: 2025-05-26 03:46:14