11871188118911901191119211931194119511961197
saveImg.directionalLight(69, 69, 69, 0, 0, -1); saveImg.lightFalloff(1, 0, 0); saveImg.smooth(8); saveImg.background(255); saveImg.pushMatrix(); // this.applyTranslationMatrix(g); saveImg.translate(-minX + border, -minY + border);
5657585960616263646566
PApplet.JAVA2D); pg.smooth(); pg.beginDraw(); pg.noStroke(); pg.background(255); pg.rect(0,0,w,h); pg.smooth(); pg.stroke(200, 200, 200);
344345346347348349350351352353354
// Clears canvas (set to transparency, to not smudge previous map on panning) pg.clear(); if (bgColor != null) { // Set background color if given (can also be transparent) pg.background(bgColor); } // translate and scale, from the middle pg.pushMatrix(); pg.translate((float) innerOffsetX, (float) innerOffsetY);
2122232425262728293031
pg.beginDraw(); if (tileImage != null) { pg.image(tileImage, 0, 0); } else { pg.background(250); pg.stroke(0); pg.rect(0, 0, pg.width, pg.height); pg.ellipse(pg.width / 2, pg.height / 2, pg.width - 5, pg.height - 5); }
240241242243244245246247248249250
int rem = tl % centre.width; int n = tl / centre.width; n = (rem == 0) ? n : n + 1; int px = (tl - centre.width * n)/2; pg.beginDraw(); pg.background(winApp.color(255,0)); pg.imageMode(CORNER); while(px < tl){ pg.image(centre, px, 0); px += centre.width;