Difference between revisions of "Template:Jscad"

From BITPlan Wiki
Jump to navigation Jump to search
Line 71: Line 71:
 
= Source code =
 
= Source code =
 
{{#tag:source|{{{code|}}}|lang=javascript}}
 
{{#tag:source|{{{code|}}}|lang=javascript}}
 +
[[Category:OpenJSCAD]]
 
</includeonly>
 
</includeonly>

Revision as of 16:51, 11 June 2019

Usage

{{jscad|title=OpenJSCAD example|code=function main() {
    return CSG.cube();
}
}}

Example

OpenJSCAD example

Playground

You can try out modifications of the source code right here.

Source code

function main() {
    return CSG.cube();
}