pdiddles03 Posted August 6, 2015 Share Posted August 6, 2015 Is beginFill() not capable of RGB? If it is, how do i use it? Quote Link to comment Share on other sites More sharing options...
xerver Posted August 6, 2015 Share Posted August 6, 2015 ?? http://pixijs.github.io/docs/PIXI.Graphics.html#beginFill It takes a number that represents the value. If you write that number in hex you get (for an example of red): 0xFF0000. Look familar (#FF0000)? There are also utility methods to help you convert from an array of rgb values into a color number: https://github.com/pixijs/pixi.js/blob/07e4e26f8fd404524a7ebaa73c210de3d8f2cf25/src/core/utils/index.js#L54-L63 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.