Contents

module::setAlpha

Sets the alpha (opacity) value of an element.

Declaration

void module::setAlpha(half alpha)

Parameters

  • alpha:

    The alpha value, where 0.0 is fully transparent and 1.0 is fully opaque

Discussion

Use this function to control the transparency of an element without modifying its RGB color components.