game.dev Posted February 26, 2015 Share Posted February 26, 2015 Hi, I am new in html game development, so my question can be simple-minded, sorry for this. I did some research and I understand that PIXI is not suppot gradient fill.It is possible to fill by one color and alpha. Is there trick that allow to create linear gradient and allow to keep PIXI style? Thanks Quote Link to comment Share on other sites More sharing options...
msha Posted February 26, 2015 Share Posted February 26, 2015 You can draw a gradient on a separate canvas(https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient), then create a texture from it, or you can create a filter(filters work only in webgl mode). 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.