Learn to Program with ZedLX

Free Online Programming Course for Beginners

Programs to Analyze [2/11]

This program demonstrates the use of a functional getter, .seta from type color, which is used to set the transparency of a color.

The functional getter color.seta has the following signature:

  • colorA color.seta(
    • num alpha
    • )

In this function, the alpha parameter controls the desired transparency of the resulting color, which is returned as a colorA value. Note that the alpha value must be between 0 and 100.

Loading...