Sharpleaf Posted October 16, 2015 Share Posted October 16, 2015 My knowledge of canvas is limited. I know much more about how to use Pixi than how the canvas itself works... I know... :/ I found this bit of code that makes a really nice lightning bolt. http://cssdeck.com/labs/xq2cpb8s(lots of ads, sorry about that) However, it's built with straight JavaScript, not on top of an "Engine" like Pixi.One problem, I think, is that it's heavily based around the 2d contexts functions. I could be very wrong here. So, I'm looking for a way to integrate this into the canvas that Pixi makes, and use the context it pulls (webgl). Is there anyone out there that has the knowledge to do that? Or if there's something I can do to figure out how to do it. Thanks! Quote Link to comment Share on other sites More sharing options...
dimumurray Posted October 16, 2015 Share Posted October 16, 2015 Looks like a path is randomly generated using bezier curves. You might want to look at Pixi's Graphics class and its arcTo methods. Quote Link to comment Share on other sites More sharing options...
Darker Posted October 27, 2015 Share Posted October 27, 2015 Can you try to produce some code and let us help you fix it? You could just start by looking in the docs for methods similar to canvas ones then see what happens. The code you shared is really long and complicated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.