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.

Newcomers DBPro Corner / Need help making a 2d Lined-Circle

Author
Message
danctodd
14
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 31st Jul 2010 15:33
I can't figure out how to get a circle/line without writing each part. I'm curious if this can be done without plotting each lines coordinates.
What I'm shooting for is to make the lines revolve around a midpoint so they form a circle but with space between each line.
You can sort of see what I mean in the image.


I want the circle to appear on a 640 by 480 screen size with the mid point in the dead center. I'd like there to be 80 to 100 lines, depending which looks better,

I'm fairly new to dbpro(be easy on me).
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2010 19:47
Ok, I think I understand what you want - you want a circle with a number of lines radiating from the centre to the circumference, and for those lines to rotate within the circle. Correct?



Obviously, rename the 'DrawIt' function to something much more meaningful to you.

danctodd
14
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 31st Jul 2010 20:07
That's...way better than what I was expecting. Thank you! I'm going to have mess with this for awhile to understand it all.
Oh, also thanks for the helpful comments in it

Login to post a reply

Server time is: 2024-11-23 10:58:43
Your offset time is: 2024-11-23 10:58:43