Live data from Hacker News

Two.js

jonobr1.github.io

51–60 of 64 posts

Re: Two.js

#53
Kind of random, but this looks very similar to Ming (php plugin) which renders flash in a very similar manner. I open-sourced a library for rendering animations using it just a few days ago (although the project itself it 6 years old) - https://github.com/erbbysam/ming-icanimate

Thanks for this, I'm probably going to spend some time recreating that ming-icanimate rendering system with two.js

Re: Two.js

#55

Could someone with the knowledge explain significant differences between this and Paper.js?

Taken from Paper.js' site: An open source vector graphics scripting framework that runs on top of the HTML5 Canvas.

Taken from Two.js' site: Two.js is renderer agnostic enabling the same api to draw in multiple contexts: svg, canvas, and webgl.

There are many differences in addition to this, but this starts to give you an idea.

Re: Two.js

#56
This is rad. Thank you. It is being added to our home education curriculum. I think the kids will get a lot out of it "turtle graphics" style.

Re: Two.js

#57

This is rad. Thank you. It is being added to our home education curriculum. I think the kids will get a lot out of it "turtle graphics" style.

I'd love to see how they use it! Please don't hesitate to share any findings you have through github issues: https://github.com/jonobr1/two.js/issues?state=open

It's the fastest way to notify me without giving out my email on this thread.

Re: Two.js

#58

Earlier quoted context omitted.

Raphael has no support to work with groups of elements.

Raphael supports sets of elements: http://raphaeljs.com/reference.html#Paper.set

Not the same - e.g. rotating a set of elements causes each individual element to rotate around their individual centers, rather than causing the group to rotate around a central pivot.

Re: Two.js

#59
post #58

Earlier quoted context omitted.

Raphael supports sets of elements: http://raphaeljs.com/reference.html#Paper.set

Not the same - e.g. rotating a set of elements causes each individual element to rotate around their individual centers, rather than causing the group to rotate around a central pivot.

Pseudo-Grouping can be made in Raphael. However each elements gets transformed one by one. At 100+ elements, things get very laggy.

Re: Two.js

#60
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.

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.

I did a whole diagram editor in Raphael. In the end we had the client installing ChromeFrame because there are still some different behaviors in IE.
Post reply on HN