use gauss elimination for color matrix (#19190)

* use gauss elimination for color matrix

* .

* Update functions.ts

* Update functions.ts

* some more improvements

* .

* .

* .

* ugh

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Kashargul
2026-02-17 09:36:18 -05:00
committed by GitHub
co-authored by Cameron Lennox
parent 3303d1617b
commit 6c5f04de76
6 changed files with 142 additions and 127 deletions
@@ -111,6 +111,8 @@
sleep(rand(3,5))
if(!length(neighbors))
break
if(QDELETED(src)) // we sleep, might get deleted!
return
spread_to(pick(neighbors))
// We shouldn't have spawned if the controller doesn't exist.