SetUnitVertexColorBJ

Parameters
whichUnitunit

The unit which will be colored.

redreal

An integer from 0-100 determining the amount of red color.

greenreal

An integer from 0-100 determining the amount of green color.

bluereal

An integer from 0-100 determining the amount of blue color.

transparencyreal

An integer from 0-100 determining the transparency. A value of 100 is complete transparency while a value of 0 is complete opacity.

comment

Sets the unit's color to the color defined by (red,green,blue,alpha).

patch

1.00

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
function SetUnitVertexColorBJ takes unit whichUnit, real red, real green, real blue, real transparency returns nothing
    call SetUnitVertexColor(whichUnit, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-transparency))
endfunction