SetLightningColor

Parameters
whichBolt lightning

The lightning to be colored.

r real

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

g real

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

b real

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

a real

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
return type
boolean
Source code
native SetLightningColor            takes lightning whichBolt, real r, real g, real b, real a returns boolean