Python 2, 280 241 235235 233 bytes
from math import*
n,k=input()
a=2*pi/k
s='<svg viewBox="-49 -49 98 98"><circle r="49"/><path d="'
p=0;exec"q=p*n;s+='M%fp=0;exec"s+='M%f,%f L%f,%f '%(49*cos(p),49*sin(p),49*cos(qp*n),49*sin(qp*n));p+=a;"*k
open('c.svg','w').write(s+'" stroke="red"/></svg>')
Saved 35 bytes due to removing xmlns
attribute at the encouragement of qwr; and 4 more since %k
was not required. 24 more by using exec
instead of for i in range(k)
.
Writes an SVG file named c.svg
. Look, ma! No graphics library! :)