Hello. Can someone explain to me the meaning of the two lines marked in red?
Code:
write_byte(random(256)) // r
write_byte(random(256)) // g
write_byte(random(256)) // b
write_byte(3) // life
write_byte(3) // decay rate
message_end()
I tried changing the values, using different combinations, but i hardly see any difference in the way colors are being changed from one color to another. Basically, i don't understand what the two values are about.
The above code is about an object surrounded by an aura, blinking in 256 different colors.
How will increasing or decreasing the "life" value affects the way the aura is being changed from one color to another?
How will increasing or decreasing the "decay rate" value affect the way the aura is being changed from one color to another?
Thanks.