1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 01:22:27 +01:00

set center default [0, 0]

This commit is contained in:
Justin Lin 2019-06-20 20:01:51 +08:00
parent a747bcff3a
commit f9dd9deb53

View File

@ -39,7 +39,7 @@ function _px_circle_sub(center, f, ddf_x, ddf_y, x, y, filled) =
function _px_circle(center, f, ddf_x, ddf_y, x, y, filled) =
x >= y ? [] : _px_circle_sub(center, f, ddf_x, ddf_y, x, y, filled);
function px_circle(center, radius, filled = false) =
function px_circle(radius, center = [0, 0], filled = false) =
let(
x0 = center[0],
y0 = center[1],