Live data from Hacker News

Two.js

jonobr1.github.io

1–10 of 64 posts

Re: Two.js

#2
Was pretty confused at first about why this would have a Backbone dependency until I looked through the source and saw they they're just pulling Backbone.Events.

I think it says a lot about Backbone that people are doing things like that. Modularity is nice.

Oh, and thumbs up for Two.js. Well done.

Re: Two.js

#5

Was pretty confused at first about why this would have a Backbone dependency until I looked through the source and saw they they're just pulling Backbone.Events. I think it says a lot about Backbone that people are doing things like that. Modularity is nice. Oh, and thumbs up for Two.js. Well done.

The decision for Backbone events vs other events is based on this performance review: http://jsperf.com/events-vs-events2/25

Re: Two.js

#6
post #3

How does this compare to raphael ( http://raphaeljs.com/ ) ?

From my understanding Raphael is specific to the SVG context. Two.js is renderer agnostic, you can choose whether it draws in SVG, canvas, or webgl. This is one of many differences between the two.

Re: Two.js

#7
post #6
post #3

How does this compare to raphael ( http://raphaeljs.com/ ) ?

From my understanding Raphael is specific to the SVG context. Two.js is renderer agnostic, you can choose whether it draws in SVG, canvas, or webgl. This is one of many differences between the two.

Raphael is SVG or VML (for IE <9)

Re: Two.js

#8
post #6
post #3

How does this compare to raphael ( http://raphaeljs.com/ ) ?

From my understanding Raphael is specific to the SVG context. Two.js is renderer agnostic, you can choose whether it draws in SVG, canvas, or webgl. This is one of many differences between the two.

Rapahel does SVG but most importantly it also renders VML when SVG is not supported by the browser, as a result it supports IE6+ unlike two. (don't get me wrong I still think two is great)

Re: Two.js

#9
post #6
post #3

How does this compare to raphael ( http://raphaeljs.com/ ) ?

From my understanding Raphael is specific to the SVG context. Two.js is renderer agnostic, you can choose whether it draws in SVG, canvas, or webgl. This is one of many differences between the two.

On the contrary, Raphael is an abstraction on top of SVG and VML (Microsoft's vector format). It's quite useful when you have to support IE.

Re: Two.js

#10
post #6

Earlier quoted context omitted.

From my understanding Raphael is specific to the SVG context. Two.js is renderer agnostic, you can choose whether it draws in SVG, canvas, or webgl. This is one of many differences between the two.

Raphael is SVG or VML (for IE <9)

Thanks for the clarification!
Post reply on HN