Drawing a polyline/circle

63 views
Skip to first unread message

Sven Richter

unread,
Jan 10, 2014, 1:57:38 PM1/10/14
to c2-...@googlegroups.com
Hi everybody,

Is it possible to draw svg polylines or circles? I have not found anything about that.

Best Regards,
Sven

Kevin Lynagh

unread,
Jan 10, 2014, 2:04:41 PM1/10/14
to c2-...@googlegroups.com
There's nothing in C2 to help you do the polyline attribute value.
However, when you are doing lines you can just use Hiccup to create the tag and value:

    [:line {:d "0,0L100,100Z"}]

likewise for circles you just say

    [:circle {:cx 100 :cy 100}]

cheers,

Kevin


--
You received this message because you are subscribed to the Google Groups "C2-cljs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to c2-cljs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Kevin Lynagh
Keming Labs
http://keminglabs.com
888.502.1042
Reply all
Reply to author
Forward
0 new messages