Jump to content

Porting some code to PIXI


Recommended Posts

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. 


(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.




Link to comment
Share on other sites

  • 2 weeks later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...