var/r_n = rand(1,255)
var/list/new_c = list(0.1,0,0, 0,0.1,0, 0,0,0.1, 1,1,1)
M.color += new_c
M.color -= new_c
So I've never worked with color matrixes before but from reading quite a few posts and reference files, they seem to be the only way to efficiently do what I'm trying to on this code.
What I'm TRYING to do is, every time this runs, fade the color of mob M's icon slightly toward white with it getting progressively whiter each time it's run.
And after approximately 10 seconds, undoing 1 step of this fade toward white.
What I'm getting right now is when this proc runs, the target's icon just turns completely white and when the spawn(100) line runs, nothing happens.
To be perfectly honest, I'm kinda doing this a little blind, the reference page for color matrixes makes my head hurt just by looking at it, it shows a few examples of the format of the code but not examples of how those formats actually function. and it's very difficult to search the forum these days since the search times out pretty much every time I try, so I'm relying on the posts I can find while searching on google.
Does anyone have any experience working with these that could point me in the right direction?