Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

GeoMap into PGraphics

$
0
0

Hi, I would like to have the geoMap.draw () into a separat PGraphics buffer. I tried several things but I couldn't push it into PGraphics.

Is this possible?

import org.gicentre.geomap.*; import org.gicentre.utils.move.*;

GeoMap geoMap; PGraphics pg;

void setup() { size(800, 400);

pg = createGraphics(800, 400);

geoMap = new GeoMap(this); // Create the geoMap object. geoMap.readFile("world"); // Read shapefile.

}

void draw() { pg.beginDraw(); pg.background(0,0);

pg.geoMap.draw();

pg.endDraw();

noLoop();
}


Viewing all articles
Browse latest Browse all 2896

Trending Articles