diff --git a/src/pixie/fileformats/svg.nim b/src/pixie/fileformats/svg.nim index 3e0437e..c9e2ec5 100644 --- a/src/pixie/fileformats/svg.nim +++ b/src/pixie/fileformats/svg.nim @@ -240,8 +240,6 @@ proc draw( img.strokePath(path, ctx.stroke, ctx.strokeWidth, ctx.transform) of "circle", "ellipse": - # Reference for magic constant: - # https://dl3.pushbulletusercontent.com/a3fLVC8boTzRoxevD1OgCzRzERB9z2EZ/unknown.png let ctx = decodeCtx(ctxStack[^1], node) var cx, cy: float32 # Default to 0.0 unless set by cx and cy on node diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index ff7fac8..40d064f 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -395,6 +395,8 @@ proc rect*(path: var Path, rect: Rect, clockwise = true) {.inline.} = path.rect(rect.x, rect.y, rect.w, rect.h, clockwise) const splineCircleK = 4.0 * (-1.0 + sqrt(2.0)) / 3 + ## Reference for magic constant: + ## https://dl3.pushbulletusercontent.com/a3fLVC8boTzRoxevD1OgCzRzERB9z2EZ/unknown.png proc roundedRect*( path: var Path, x, y, w, h, nw, ne, se, sw: float32, clockwise = true