also somewhat shorter ```c new component = 255 - f...
# pawn-help
f
also somewhat shorter
Copy code
c
new component = 255 - floatround(distance * (float(128) / MAX_DISTANCE));