@pixi/3d
    Preparing search index...

    Function packParticleColor

    • Advanced

      Packs a tint and opacity into the 32-bit word ParticleContainer3D.writePacked takes

      Red lands in the low byte and alpha in the high byte, as ParticleContainerViews.u32 holds the colour.

      Parameters

      • color: number

        0xRRGGBB tint, in display (sRGB) space

      • alpha: number

        Opacity, 0 to 1

      Returns number

      The packed word