diff --git a/desktop/sources/scripts/surface.js b/desktop/sources/scripts/surface.js index 17d4f44..0d80be1 100644 --- a/desktop/sources/scripts/surface.js +++ b/desktop/sources/scripts/surface.js @@ -64,7 +64,6 @@ function Surface (ronin) { context.font = `${shape.g}px ${shape.f}` context.fillText(shape.s, shape.x, shape.y) } else if (shape.t === 'svg') { - context.lineWidth = width context.fillStyle = color context.fill(new Path2D(shape.d)) } else { diff --git a/examples/svg.lisp b/examples/svg.lisp index 890afb8..2a81943 100644 --- a/examples/svg.lisp +++ b/examples/svg.lisp @@ -1,3 +1,5 @@ +((fill + (svg "M255,60 L255,60 L135,180 L75,60 L195,210 L120,225 L105,225 L165,255 L225,195 L255,135 L285,150") "white") + (stroke - (svg "M255,60 L255,60 L135,180 L75,60 L195,210 L120,225 L105,225 L165,255 L225,195 L255,135 L285,150") - 2 "red") \ No newline at end of file + (svg "M405,15 L405,15 L150,150 L195,90 L240,135 L120,195 L75,90 L135,165 L120,225 L90,240 L60,210 L90,150 L255,180 L285,180 L285,165 ") "pink")) \ No newline at end of file