Media Server 12.12

# rgba

The `rgba` method returns an object that represents a color, with an associated opacity value. The object can be passed into other drawing functions.

## Syntax

    rgba ( red, green, blue, opacity )

## Arguments

Argument | Description
--- | ---
`red` | (number) The red color value (0-255)
`green` | (number) The green color value (0-255)
`blue` | (number) The blue color value (0-255)
`opacity` | (number) The opacity value (0-255, where 0 is transparent and 255 is opaque).

## Returns

A color object with an associated opacity value.

## Example

    local mycolor = rgba(255, 255, 0, 127)

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Media Server 12.12

Topic Title: rgba