Var radius = 10;
Var theta = 360/corners;
Var a =0;
Var corners =5;
For(var i=0;i<no_of_stars_per_line+a;i++){
For(var j=0;j<lines;j++){
For(var k=0;k<corners;k++){
Var x = i + radius * cos(theta * k);
Var y = j + radius * sin(theta * k);
Drawshape(0+i * x_spacing,0+j * y_spacing,x,y);
a ++;
}}}
That should be the basic jist of it. Of course the drawshape function is supposed to have your triangle code, otherwise you could simply use
Line(0+x_spacing * i,0+y_spacing * j,x,y);
You’d need to define your spacing.
Sorry code isnt formatted im using my phone
Also my star icon doesnt seem to work so i used hash # instead just add them in to the right places as they’re you’re multipliers.