size(670, 670); background(229, 223, 209); fill(197, 105, 110); int barY = 20; int barWidth = 45; int barThickness = 8; int gap = 3; noStroke(); //left side while(barY=6) { incWidth = incWidth + 25; incHeight = incHeight + 25; } } //erasing some of the circle noStroke(); fill(229, 223, 209); int offset = 44; int topX = lineX1 + lineLength - offset; rect(topX, lineY1, offset*2, abs(height-lineY1)); stroke(0); gap = 2; count = 0; // drawn right to left while(count<=12) { line(lineX, lineY1, lineX, lineY2); lineX = lineX - lineThickness - gap; println(lineX); count = count + 1; } noStroke(); fill(0); // Adapted from Caey Processing book: Math 3 chapter float angle = PI/2.0; int origX = 340; offset = 40; for (int numOfStrokes=0; numOfStrokes<4; numOfStrokes += 1) { angle = PI/2.0; // important reset origX = origX + offset; println("origX " + origX); for (int y = 260; y <= height; y = y+2) { float x = 30 + (sin(angle) * 20.0); rect(x+origX, y, 8, 4); angle = angle + PI/40.0; } } stroke(0); lineThickness = 12; strokeWeight(lineThickness); // horizonal black lines drawn last println("corner " + lineX1 + " " + lineY); gap = 25; count = 0; while(count<=10) { line(lineX1, lineY, lineX1+lineLength, lineY); lineY = lineY + gap; count = count + 1; }