[RESOLVED] Lines in a circle
I can draw a line to screen, great!
Now i want to draw a circle of lines, bit like a second hand on a clock.
I am drawing the line using this code
Code:
e.Graphics.DrawLine(colorPen, lineCenter, point2)
How do I keep changing point2 so that it goes round 0 to 360 in steps of whatever?
Re: [RESOLVED] Lines in a circle
Quote:
Also, since you're using a fixed value, the function wouldn't be necessary and it would be better to just use Rand.Next(256) instead of calling the function. Also, no need for the num parameter in the function call, since you're not using it.
But perhaps that was only for testing.
I suspect the function should be as follows to return a number between 0 and num, inclusively.
The function is what I used in an earlier incarnation so is the num, I used a function because it is called from different subs but I'll ditch it and just use the Rand.next(256)
I'll also have a look at the links you suggest.