Skip to content

Instantly share code, notes, and snippets.

@zkarcher
zkarcher / wave_zka.py
Last active December 3, 2021 19:37
openrazer: Subtle keyboard rainbow, using python3 API
import colorsys
import random
from time import sleep
from openrazer.client import DeviceManager
from openrazer.client import constants as razer_constants
FPS = 30
WAVE_SPEED = 0.0025
WAVE_REPEAT = 0.9 # How many waves fit across device