Phaser API Documentation

  Version: 
<static> getTintAppendFloatAlphaAndSwap(rgb, a)

Description:

Packs a Uint24, representing RGB components, with a Float32, representing the alpha component, with a range between 0.0 and 1.0 and return a swizzled Uint32

Parameters:

name type description
rgb number

Uint24 representing RGB components

a number

Float32 representing Alpha component

Returns:
Description:

Packed RGBA as Uint32

Type:
  • number
Since: 3.0.0