void drawLine(int svg_id, float svg_x, float svg_y, float svg_scale, float svg_rotate) { translate(svg_x,svg_y); scale(1/svgwidth[svg_id]*svg_scale); rotate(svg_rotate); pushMatrix(); //ellipseMode(CENTER); //ellipse(0, 0, 100, 100); pushMatrix(); for (int j=1; j <= pathnumber[svg_id]; j++) { pushMatrix(); translate(-37,-202); fill(0); paths[svg_id][j].drawMode(CORNER); paths[svg_id][j].draw(0,0); popMatrix(); } popMatrix(); popMatrix(); } void drawOut(int svg_id, float svg_x, float svg_y, float svg_scale, float svg_rotate, float path_scale, float path_rotate) { pushMatrix(); translate(svg_x,svg_y); scale(1/svgwidth[svg_id]*svg_scale); rotate(svg_rotate); noStroke(); fill(0); pushMatrix(); for ( int i = 0; i < 3500; i += 50 ) { scale(1.1); translate(10,0); drawLogo(int(random(49,49)), // SVGID 0, // POS X 0, // POS Y 30, // SCALE PI/4); // ROTATE } popMatrix(); pushMatrix(); for (int j=1; j <= pathnumber[svg_id]; j++) { pushMatrix(); translate(-37,-202); paths[svg_id][j].draw(0,0); translate(37,202); noStroke(); popMatrix(); } popMatrix(); popMatrix(); } void drawLogo(int svg_id, float svg_x, float svg_y, float svg_scale, float svg_rotate) { pushMatrix(); translate(svg_x,svg_y); scale(1/svgwidth[svg_id]*svg_scale); rotate(svg_rotate); pushMatrix(); for (int j=1; j <= pathnumber[svg_id]; j++) { pushMatrix(); paths[svg_id][j].drawMode(CENTER); paths[svg_id][j].draw(0,0); popMatrix(); } popMatrix(); popMatrix(); }