Jump to content

RGB and Beginfill?


pdiddles03
 Share

Recommended Posts

??

 

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

Link to comment
Share on other sites

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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