Define per-key RGB on https://wootility.io using javascript. Userscript (wootility.user.js) created by Netux.
Download or copy the contents of wootility.user.js into a userscript extension, such as Violentmonkey or Tampermonkey.
Go to the Wootility site, open the console with F12 or ctrl+shift+i, paste the contents of setRGB.min.js into it, and press Enter.
The default function creates a rainbow gradient across the board.
To use a custom function, create a function named RGBFunction(keyPos, matrixPos) in the console. It must return a dict containing values for red, green, and blue.
The arguments to the function will give you
keyPos: a dict containing the.xand.ypositions of the current key, ranging from 0-1 (left-right, top-bottom).matrixPos: a dict containing the.rowand.columnof the current key.
After running the script, the keys will update, but will not be saved to the onboard profile. Enter s() into the console to confirm you want to overwrite the onboard colors.
If you haven't run s(), you can enter undo() to revert to the saved color profile.