Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 932 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 932 Bytes

SVGExtended

Processing library to extend the support of SVGs: image and text support.

It is developped for Soby, and PapARt.

Project page on Natar: https://doc.natar.fr/doc/processing-libraries/svgextended

How to use ?

Instead of creating a PShapeSVG from an XML, use a PShapeSVGExtended.

import tech.lity.rea.svgextended.*;

PShape bot1, bot2;
void setup() {
  size(640, 660);
  // The file "bot1.svg" must be in the data folder
  // of the current sketch to load successfully
  bot1 = loadShape("bot2.svg");

  // The file "bot2.svg" must be located with "bot1.svg"
  bot2 = new PShapeSVGExtended(loadXML("bot2.svg"));
} 

void draw(){
  background(102);
  shape(bot1, 0, 0); 
  shape(bot2, 0, 320);
}

How to install ?

The library already compiled, see the release page.