meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:design_guide_ellipse [2020/12/02 06:09]
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>
-let myshape = ellipse({radius: [5, 10]}) +const { ellipse } = require('@jscad/modeling').primitives 
-let myshape = circle({radius: [5, 10], center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64})+ 
 +const myshape = ellipse({radius: [5, 10]}) 
 +const myshape = ellipse({radius: [5, 10], center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64})
 </code> </code>
  
Line 23: Line 25:
 A two dimensional shape made by drawing a curve that is always the same distance from a center. All points are the same distance from the center. A two dimensional shape made by drawing a curve that is always the same distance from a center. All points are the same distance from the center.
  
-{{ :wiki:mathisfun_circle.svg?nolink | Circle }}+{{ :wiki:jscad-circle.svg?nolink | Circle }}
  
 //[[http://www.mathsisfun.com/algebra/circle-equations.html|Learn about circles at MathIsFun.com]]// //[[http://www.mathsisfun.com/algebra/circle-equations.html|Learn about circles at MathIsFun.com]]//
Line 35: Line 37:
  
 <code javascript> <code javascript>
-let myshape = circle({radius: 10}) +const { circle } = require('@jscad/modeling').primitives 
-let myshape = circle({radius: 10, center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64})+ 
 +const myshape = circle({radius: 10}) 
 +const myshape = circle({radius: 10, center: [5, 5], startAngle: Math.PI / 2, endAngle: Math.PI, segments: 64})
 </code> </code>