Hi, Unfortunately I’m not familiar enough with the Krita codebase to implement this in the right way.
The version I created was hacky and should only be used for testing.
The code in spectral.js is straight forward and somebody with enough knowledge of Krita could implement a good version.