|
| 17 Jun 2014 02:17 AM |
I do not really need code, but an effective algorithm to draw one. The one's I've tried haven't panned out... At all. They do not do what they're advertised to do, whether that's my fault of not understanding the algorithm's or not is unknown to me.
However if somebody could point me in the right direction to one that'd be great. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Jun 2014 02:19 AM |
You could do something like:
local createPoint = function(x, y) --create frame, size being like 0, 2, 0, 2 or whatever end;
for angle = math.pi/180, 2 * math.pi, math.pi/180 do createPoint(math.cos(angle) * 5, math.sin(angle) * 5); end |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2014 02:27 AM |
| That doesn't work and as I stated, I do not really want code. However I think another go at bresnham's may do what I want. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
|
| 17 Jun 2014 02:28 AM |
What cntkillme said.
Note that the circle will have a radius of 5, you can change that though by changing the number. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Jun 2014 02:28 AM |
| I didn't see you state it but this should work, anyways have fun. |
|
|
| Report Abuse |
|
|