Skip to content

Commit

Permalink
docs(examples): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 13, 2018
1 parent 2fa4c56 commit 2b16d24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/hdom-canvas-shapes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

[Live demo](http://demo.thi.ng/umbrella/hdom-canvas-shapes/)

This example demonstrates different features of the still unreleased
[@thi.ng/hdom-canvas](https://github.com/thi-ng/umbrella/tree/master/packages/hdom-canvas)
package to declare canvas scenegraphs using the same hiccup syntax as
the rest of the UI. These shape elements (children of the `canvas`
component) are defined via a SVG-like approach and, using the
branch-local behavior feature of
[@thi.ng/hdom](https://github.com/thi-ng/umbrella/tree/master/packages/hdom),
are translated into canvas API draw calls. Shapes can be grouped and any
attributes defined on group nodes will be inherited by all children
(same as in SVG).

```bash
git clone https://github.com/thi-ng/umbrella.git
cd umbrella/examples/hdom-canvas-shapes
Expand Down

0 comments on commit 2b16d24

Please sign in to comment.