void draw(){ //translate(x - 320, y); background(0); fill(255); rect(160, 0, 160, 180); rectMode(CORNER); for (int i = 0; i < 7; x = 10+20*i, i++){ for (int j = 0; j < 9; y = 10+20*j, j++ ){ if(i + j == 1){ continue; } fill(255); rect(x-4-i, y-4-i, 4+i, 4+i); for (int i = 0; i < 7; x = 170+20*i, i++ ){ for (int j = 0; j < 9; y = 10+20*j, j++ ){ if(i + j != 1){ continue; } noStroke(); fill(255); if(i==2){print("piirretaan!!\n");} rect(x-10+i, y-10+i, 11-i, 21-i); } } } } pushMatrix(); for (int i = 0; i < 7; x = 170+20*i, i++ ){ for (int j = 0; j < 9; y = 10+20*j, j++ ){ if(i + j != 1){ continue; } noStroke(); fill(255); if(i==2){print("piirretaan!!\n");} rect(x-10+i, y-10+i, 11-i, 21-i); } } popMatrix(); }
void draw() { background(224,224,224,255); //background(pLightGray); //background(aliceblue); // plot area as white box fill(255); rectMode(CORNERS); noStroke(); rect(plotX1, plotY1, plotX2, plotY2); drawTitle(); // plot the actual columnar data stroke(0x56, 0x79, 0xc1, 255); strokeWeight(5); drawDataPoints(currentColumn); drawYearLabels(); drawVolumeLabels(); drawAxisLabels(); }
void setup() { size(640, 360); noStroke(); rectMode(CENTER); }