SHOW:
|
|
- or go back to the newest paste.
1 | ///scr_draw_ring(x,y,iradius,oradius,resolution,rotation,colour,alpha) | |
2 | // 0 1 2 3 4 5 6 7 | |
3 | draw_primitive_begin(pr_trianglestrip); | |
4 | for(var i=0;i<=argument[4];i++) | |
5 | { | |
6 | draw_vertex_colour( | |
7 | argument[0]+lengthdir_x(argument[2],360/argument[4]*i+argument[5])+1, | |
8 | argument[1]+lengthdir_y(argument[2],360/argument[4]*i+argument[5])+1, | |
9 | argument[6],argument[7] | |
10 | ) | |
11 | draw_vertex_colour( | |
12 | argument[0]+lengthdir_x(argument[3],360/argument[4]*i+argument[5])+1, | |
13 | argument[1]+lengthdir_y(argument[3],360/argument[4]*i+argument[5])+1, | |
14 | argument[6],argument[7] | |
15 | ) | |
16 | } | |
17 | draw_primitive_end(); |