Fork me on GitHub
Not signed in (Sign In)
  1.  
    Hi,
    I am starting with Flint, it's nice the way how this works.
    I picked this as base to make my version: http://flintparticles.org/examples/sparkler
    The particles works nice, but when I made a simple adjust:
    [code]
    addInitializer( new ColorInit( 0xFF0000, 0xFFFFCC00 ) );
    [/code]
    When I just changed the first color as showed above, the particles doesn't works anymore.
    Just works when I put the first color as the same of showed in example.
    Why this happens? How I can get more colors as I need into this particle?
    Thanks.
  2.  
    Does anyone have a advice?Or saw this too?
    • CommentAuthorRichard
    • CommentTimeApr 30th 2013
     
    The colors are 32bit ARGB values - the first FF is the alpha value. So you probably want

    addInitializer( new ColorInit( 0xFFFF0000, 0xFFFFCC00 ) );