SVG does not appear properly, but PNG is fine.

edited October 2015 in Questions about Code

When I load a background as SVG, it does work. Although I set SVG size, and set size in processing, it still does not work.

3D94D712-41D9-44AC-B7F0-F36746AD981E

//PImage b;
PShape m;
PShape b;

void setup () {
  size (1080, 720);
  frameRate(25);
  b= loadShape("background1.svg");
  //b = loadImage("background.png");
  m = loadShape("moon.svg");
}

void draw(){
  //image(b,0,0);
  shape(m);
  shape(b);
}

https://dropbox.com/s/y38tkkmsha358wy/sketch_151022a.zip?dl=0

Answers

Sign In or Register to comment.