move comment
This commit is contained in:
parent
6cb2491825
commit
8cf6c5cd2f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue