Skip to content

Instantly share code, notes, and snippets.

@doubleshow
doubleshow / index.xml
Created October 9, 2015 20:07
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<stack>
<div>Ray</div>
<cube></cube>
</stack>
@doubleshow
doubleshow / index.xml
Last active October 14, 2015 11:38
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<param name="h" type="int" default="20"
label="height of the cylinder"/>
<param name="n" type="int" default="3"
label="number of spheres"/>
@doubleshow
doubleshow / index.xml
Last active October 9, 2015 23:19
craftml
<craft>
<info>
<title>New Language Features</title>
</info>
<params a="3" b="4" c="5" h="10"/>
<!-- equivalent to -->
<!--<param name="a" default="3" type="int"/>-->
<!--<param name="b" default="4" type="int"/>-->
@doubleshow
doubleshow / index.xml
Last active October 7, 2015 23:12
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<script>
$params.hs = [10,11,8,1,10,12,3]
</script>
<row>
@doubleshow
doubleshow / index.xml
Created October 7, 2015 22:50
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<param name="h" type="int" default="20"
label="height of the cylinder"/>
<param name="n" type="int" default="3"
label="number of spheres"/>
@doubleshow
doubleshow / index.xml
Created October 7, 2015 19:36
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<param name="h" type="int" default="20"
label="height of the cylinder"/>
<param name="n" type="int" default="3"
label="number of spheres"/>
@doubleshow
doubleshow / index.xml
Last active October 6, 2015 13:16
craftml
<craft>
<info>
<title>c-repeat n tests</title>
</info>
<stack spacing="2">
<col spacing="2" c-repeat="3">
<row spacing="2" c-repeat="3">
<cube c-repeat="5"></cube>
@doubleshow
doubleshow / index.xml
Last active October 13, 2015 12:22
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<param name="h" type="int" default="20"
label="height of the cylinder"/>
<param name="n" type="int" default="3"
label="number of spheres"/>
@doubleshow
doubleshow / index.xml
Last active October 1, 2015 20:46
craftml
<craft>
<info>
<title>five balls</title>
</info>
<craft name="ball">
<sphere></sphere>
</craft>
<col>
@doubleshow
doubleshow / index.xml
Last active October 1, 2015 19:45
craftml
<craft>
<info>
<title>row/col/stack</title>
</info>
<cube t="translate(20,0,0)"></cube>
<cylinder></cylinder>