The tool is written in Go, using the OpenVG library [1]. See [2] for the
source code, including a sample deck.
By design the number of objects supported is small: text (plain and code blocks, plain and bullet lists), and images.
Positioning of the objects is done via percentages, scaled to a specified canvas size. Text sizes are also specified by a percentage of the canvas. For example, this deck contains two slides, a title page, and a slide with a bulleted list.
Navigation is done with simple keyboard commands to advance and go back, go to the start or end of the deck, as well as search the deck for a given string.
Code: Select all
<deck>
<canvas width="1920" height="1080" />
<slide bg="white" fg="maroon">
<text xp="50" yp="60" sp="5" align="center">Why I use Go</text>
<image xp="50" yp="50" width="75" height="100" name="doc.png"/>
<text xp="50" yp="20" sp="1.5" align="center">Anthony Starks</text>
<text xp="50" yp="15" sp="0.75" align="center">@ajstarks</text>
<text xp="50" yp="12" sp="0.75" align="center">[email protected]</text>
</slide>
<slide bg="maroon" fg="white">
<text xp="20" yp="80" sp="3">Go is:</text>
<list xp="20" yp="70" sp="2" type="bullet">
<li>Simple</li>
<li>Productive</li>
<li>Portable</li>
<li>Compiled</li>
<li>Fast</li>
<li>Concurrent</li>
</list>
</slide>
</deck>
[2] https://github.com/ajstarks/openvg/tree ... lient/deck