Skip to content

Instantly share code, notes, and snippets.

@calebhsu
Last active September 28, 2015 17:57
Show Gist options
  • Save calebhsu/743c68160c6bd59439ed to your computer and use it in GitHub Desktop.
Save calebhsu/743c68160c6bd59439ed to your computer and use it in GitHub Desktop.
Noah's Ark (Page 1) using CraftML tags
<craft>
<info>
<title>Noah's Ark (P1)</title>
</info>
<craft name="frame" module="frame"/>
<style>
halfnail { color: dimgray; }
hammer { color: silver; }
rain { color: skyblue; }
</style>
<craft name="page1">
<craft name="page" module="page"/>
<craft name="sun" module="sun"/>
<craft name="diagonal-layout" module="diagonal-layout"/>
<craft name="hammer" module="./modelHammer.stl"/>
<part name="halfnail">
<craft name="nail" module="./modelNail.stl"/>
<stack t="cropY(0 45%)">
<nail t="scale(3)"></nail>
<cylinder radius="3" height="2"></cylinder>
</stack>
</part>
<page xmargin="20" color="white">
<diagonal-layout spacing="-8">
<sun></sun>
<row spacing="4">
<hammer t="rotateX(89) rotateZ(45) cropZ(20%)"></hammer>
<row t="rotateX(90)">
<halfnail t="rotateY(10)"></halfnail>
<halfnail t="rotateY(-10)"></halfnail>
</row>
</row>
</diagonal-layout>
</page>
</craft>
<frame>
<picture>
<page1></page1>
</picture>
<caption>
<braille> building an ark </braille>
</caption>
</frame>
</craft>
Display the source blob
Display the rendered blob
Raw
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<braille> God saw that Noah was </braille>
<braille> good, so He told him to </braille>
<braille> build an ark for his </braille>
<braille> family and all the </braille>
<braille> animals. </braille>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment