Difference between revisions of "Template:Jscad"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
= Usage = | = Usage = | ||
<pre> | <pre> | ||
− | {{jscad|title=OpenJSCAD example|code=function main() | + | {{jscad|title=OpenJSCAD example|code=function main() { |
− | { | + | return CSG.cube(); |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
= Example = | = Example = | ||
{{jscad|title=OpenJSCAD example|code=function main() | {{jscad|title=OpenJSCAD example|code=function main() | ||
{ | { | ||
− | + | function main() { | |
− | + | return CSG.cube(); | |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
}} | }} | ||
[[Category:Template]] | [[Category:Template]] |
Revision as of 14:46, 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()
{
function main() {
return CSG.cube();
}