move comment

This commit is contained in:
Ryan Oldenburg 2021-02-22 18:42:06 -06:00
parent 6cb2491825
commit 8cf6c5cd2f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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