Jump to content

SetMarkerAlpha

From CMM Wiki
Return to CMM Command Reference
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
colourA colour table with r, g, b, a components where each is a number between 0 and 1.
alphaA 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: