Closed
Description
In GitLab by @mrakgr on Mar 26, 2021, 16:21
Description
Whenever I try to use shape
with the SVG renderer I get an textMode(SHAPE) is not supported by this renderer.
error message. I thought at first that the error meant the SVG renderer did not support PShape
objects, but the output ends up being correct and the .svg
file does get produced.
import processing.svg.*;
void setup() {
size(400, 400, SVG, "filename.svg");
//size(400, 400);
}
void draw() {
PShape s = createShape();
s.beginShape();
s.fill(255,0,0);
s.vertex(0,0);
s.vertex(50,0);
s.vertex(50,50);
s.endShape(CLOSE);
shape(s);
// Exit the program
println("Finished.");
exit();
}
Expected Behavior
Finished.
Current Behavior
textMode(SHAPE) is not supported by this renderer.
Finished.
Steps to Reproduce
Run the code.
Your Environment
- Processing version: 3.5.4
- Operating System and OS version: Win 10
- Other information:
Possible Causes / Solutions
Metadata
Metadata
Assignees
Labels
No labels