SetLightningColor

Parameters
whichBoltlightning

The lightning to be colored.

rreal

0-1 visibility of red channel (value mod 1)

greal

0-1 visibility of green channel (value mod 1)

breal

0-1 visibility of blue channel (value mod 1)

areal

0-1 alpha value/overall visibility multiplier (value mod 1)

comment

Sets the coloring of a lightning.

note

The default is 1, 1, 1, 1.

bug

This native is inaccurate. The modulo is not exactly 1 and even setting a color value to e.g. 0.1 yields 0.098.

patch

1.17a

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
native SetLightningColor            takes lightning whichBolt, real r, real g, real b, real a returns boolean