User Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
jscad_quick_reference [2018/02/23 13:12]
z3dev
jscad_quick_reference [2018/02/23 13:16]
z3dev
Line 5: Line 5:
  
 {{page>​quick_reference_intro}} {{page>​quick_reference_intro}}
- 
-===== General Usage ===== 
-^  OpenJSCAD Functions ​ ^  JavaScript Statements ​ ^ 
-| function main(parameters) { ...; return var; } **/* required */** | var name = my_box( {attribute: 1, ...} ); | 
-| function getParameterDefinitions() {return [ definition... ]; } **/* optional */**  | function my_box( param ) { ...; return shape; } **/* create a function */**  | 
-| OpenJsCad.log("​message"​); ​ **/* display message and time stamp */** | console.log("​message"​);​ /* display message */  | 
-| include... ​ | for (index = 0; index < array.length;​ index--;) { ... };  | 
- 
-//Note: Messages are displayed in the Javascript console in browsers.// 
  
 {{page>​quick_reference_shapes}} {{page>​quick_reference_shapes}}