Draw primitive begin

Example
Draw 3/4 of a circle: var i; var steps=20;//The amount of vertices used for the circumference. var xx=50; var yy=50; var radius=30;

draw_primitive_begin(pr_trianglefan); draw_vertex(xx,yy); for(i=0;i<=steps;i+=1) draw_vertex(xx+lengthdir_x(radius,270*i/steps),yy+lengthdir_y(radius,270*i/steps)); draw_primitive_end;