News for hackers. Stuff that matters.
Re:Paper.js — The Swiss Army Knife of Vector Graphics Scripting by emiranda on Monday June 27, 2011 @02:43PM (#2702455)
Anyone happen to know where I can find general information on implementing something like this? http://paperjs.org/examples/chain/ I'm interested in implementing this mechanic in Flash (for a game). I looked through the source code and it seems like a lot of code just to get to the point. Hoping to find something more basic that I can port over.
Re:Paper.js — The Swiss Army Knife of Vector Graphics Scripting by fserb on Monday June 27, 2011 @04:25PM (#2702881)
I think you got something wrong there. The source code for chain (accessible by pressing the "source" button on the top right corner of the page) is just 35 lines long and only does the chain/snake effect.
Re:Paper.js — The Swiss Army Knife of Vector Graphics Scripting by emiranda on Monday June 27, 2011 @07:13PM (#2703359)
Yes, it's 35 lines. But that's not including the source. Such as the definitions for Point(), which is a couple 100 lines of code, not including its dependencies. I want to port it over to Flash, which is in ActionScript not JavaScript.