polargraph_processing/libraries/geomerative/examples/Tutorial_09_HelloBot_svgToG.../Tutorial_09_HelloBot_svgToG...

21 lines
315 B
Plaintext

import geomerative.*;
RShape shp;
void setup(){
size(800, 600);
smooth();
// VERY IMPORTANT: Allways initialize the library before using it
RG.init(this);
shp = RG.loadShape("tiger.svg");
shp = RG.centerIn(shp, g);
}
void draw(){
background(255);
translate(mouseX, mouseY);
RG.shape(shp);
}