Skip to content
darwin edited this page Feb 13, 2013 · 7 revisions

I assume you are familiar with HTML.

A simple comics source may look like this: (view it http://cmx.io/#4772996, edit it http://cmx.io/edit/#4772996)

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
  <scene id="scene1">
    <label t="translate(0,346)">
      <tspan x="0" y="0em">Comix Sample</tspan>
    </label>
    <actor t="translate(131,49)" pose="-11,9|-5,117|...|-6,79|-1,59">
      <bubble pose="0,0|-20,10|-81,49|22,44|-17,87|-64,102">
        <tspan x="0" y="0em">Hello World!</tspan>
      </bubble>
    </actor>
  </scene>

Comics document is a HTML document which includes cmx.css stylesheet, cmx.js script and defines one or more scenes using custom tags. You are free to add your own HTML content outside scene tags.

Note: This wiki is work in progress. Hopefully I will add more documentation later.

Clone this wiki locally