meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
en:design_guide_ellipse [2020/12/08 06:48] JSCAD Editor |
en:design_guide_ellipse [2022/04/13 07:19] (current) rozek included "require" statements, corrected mistakes |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| <code javascript> | <code javascript> | ||
| + | const { ellipse } = require(' | ||
| + | |||
| const myshape = ellipse({radius: | const myshape = ellipse({radius: | ||
| - | const myshape = circle({radius: [5, 10], center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64}) | + | const myshape = ellipse({radius: [5, 10], center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64}) |
| </ | </ | ||
| Line 35: | Line 37: | ||
| <code javascript> | <code javascript> | ||
| + | const { circle } = require(' | ||
| + | |||
| const myshape = circle({radius: | const myshape = circle({radius: | ||
| const myshape = circle({radius: | const myshape = circle({radius: | ||
| </ | </ | ||