Fixed error with (fill (svg)) fill
This commit is contained in:
parent
89196fd28d
commit
ab3d959335
@ -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 {
|
||||
|
@ -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")
|
||||
(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"))
|
Loading…
x
Reference in New Issue
Block a user