drawStar( width/2, height/2, min/4 ); // draw star in center
Now consider the method that draws the star:
drawStar( int x, int y, int size )
Each line (of the six) starts at the center,
size*cos( theta )
size*sin( theta )
All you need to do is find the six values for theta and the six endpoints are yours.