Admin Password
draw_polygon()

//argument0 = x
//argument1 = y
//argument2 = number of side (must be more than 3)
//argument3 = radius
//argument4 = angle
//argument5 = color

var xx,yy,angle,t;

draw_set_color(argument5)
angle=360/argument2;
t=argument4;
xx=argument0+argument3*cos(degtorad(t));
yy=argument1+argument3*sin(degtorad(t));
draw_primitive_begin(pr_linelist);
draw_vertex(xx,yy);
repeat(argument2)
{
t-=angle;
xx=argument0+argument3*cos(degtorad(t));
yy=argument1+argument3*sin(degtorad(t));
draw_vertex(xx,yy);
draw_vertex(xx,yy);
}
draw_primitive_end();
This page has been viewed 67 times
Free Text Host is brought to you by Dagon Design
This site contains no adware, spyware, or popups
Questions? Comments?