<img src="" /> <svg></svg>
<svg viewBox="0 0 500 500" style='width: 500px; height: 500px; border: 1px solid black;'>
<rect x=0 y=0 width=500 height=500 fill="#FF0000" />
<line x1=10 y1=10 x2=250 y2=300 stroke="#FFFFFF" stroke-width=10 />
</svg>
import processing.svg.*;
void setup() {
size(400, 400, SVG, "filename.svg");
}
void draw() {
// Draw something good here
line(0, 0, width/2, height);
// Exit the program
println("Finished.");
exit();
}
<svg viewBox="0 0 500 500" style='width: 500px; height: 500px; border: 1px solid black;'>
<rect x=0 y=0 width=500 height=500>
<line x1=10 y1=10 x2=250 y2=300>
<rect x=0 y=0 width=500 height=500>
<line x1=11 y1=10 x2=251 y2=300>
<rect x=0 y=0 width=500 height=500>
<line x1=12 y1=10 x2=252 y2=300>
<rect x=0 y=0 width=500 height=500>
<line x1=13 y1=10 x2=253 y2=300>
</svg>
for (x=10; x<14; x++) {
background(0);
line(x,0,x+250,300);
}
background(0);
background(0);
background(0);
background(0);
<svg viewBox="0 0 500 500" style='width: 500px; height: 500px; border: 1px solid black;'>
<rect x=0 y=0 width=500 height=500>
<line x1=13 y1=10 x2=253 y2=300>
</svg>
REDUNDANTE E DESNECESSÁRIO
ISSO É O QUE É EFETIVAMENTE VISTO