Hi guys, just wanted to post an extra Om example, in case it's useful to 
anyone. This is a simple triangle-based icon editor written in Om, with 163 LOC 
(a big chunk of which is just for doing triangle math)

Demo: http://drcode.github.io/tricon/index.html
Source code: https://github.com/drcode/tricon/blob/gh-pages/src/client/core.cljs

The main noteworthy features of this app:
   1. Works in all major desktop browsers
   2. It shows how to integrate a canvas correctly into an Om component
   3. It uses a series of chans to massage the mouse data (so no need for ugly 
"is_mouse_down" state)
   4. I tried to make it as idiomatic as possible (not that anyone really knows 
what an idiomatic Om program looks like yet :-)

Limitations:
   1. My half-hearted attempt at supporting touch events doesn't work 
completely yet (more css tweaks?)
   2. Using slow cljsbuild dev compilation (Weird errors when trying to compile 
in release)

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to