Geomerative Quickie
in
Contributed Library Questions
•
3 years ago
All
I'm experienced in processing but have just discovered the Geomerative library; really handy. Having spent a couple of days playing with it I've got a quick question on something I'm trying to do.
What I want to do is create a shape that has within it a series of 'sub 'shapes that are loaded from various .svg files.
Essentially the following:
- shp1 = RG.loadShape("0-0-2.svg");
- shp2 = RG.loadShape("0-0-3.svg");
- shp3 = RG.loadShape("0-0-4.svg");
- mastershp = new RShape();
- mastershp.addShape(shp1);
- mastershp.addShape(shp2);
- mastershp.addShape(shp3);
- mastershp.addClose();
- stroke( 120 );
- strokeWeight( 3 );
- fill( 220 );
- mastershp.draw();
Now, whilst I've successfully used the addShape() method for shapes built with basic functions, it doesn't seem to work when these shapes are called up from an .svg. Is this correct or is it just me being a dolt again?
Ta
Sam
1