SetMarkerAlpha
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetMarkerAlpha | |
| Function Description: | Modifies the alpha component of a colour table by multiplying it with a specified alpha value, returning a new colour table with updated alpha. | |
| File Location: | cmm.markerFunctions.lua | |
| Syntax: | CMM.SetMarkerAlpha( table colour , number alpha ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| colour | A colour table with r, g, b, a components where each is a number between 0 and 1. | |
| alpha | A number between 0 and 1 representing the multiplier for the alpha component of the colour. | |
| Example: | CMM.SetMarkerAlpha({r=1, g=0, b=0, a=1}, 0.5) | |
| Example Description: | Returns a colour table with red intensity at 1, green and blue at 0, and alpha reduced to 0.5. | |
| Related Functions: | ||
| Notes: | ||