// Variance int[] angle = {342, 198, 54, 270, 126}; int w = 240; int h = 240; int offx, offy; float scale; void setup() { //Set window surface.setResizable(true); surface.setSize(w, h); background(0,0,0); fill(255, 255, 0); //paint color noStroke(); //delete line } void draw() { offx = int(w/2); //transform offy = int(h/2); scale = 20.0; //scale //Draw star beginShape(); for(int i=0; i<5; i++ ) { int xpos = int(cos(radians(angle[i]))*scale+offx); int ypos = int(sin(radians(angle[i]))*scale+offy); vertex(xpos, ypos); } endShape(CLOSE); }