Skip to content

Instantly share code, notes, and snippets.

View jath03's full-sized avatar
💭
Making cool stuff

Jack jath03

💭
Making cool stuff
View GitHub Profile
@jath03
jath03 / hue-game-sync.py
Created September 21, 2020 17:25
Sync the background color from the game Hue to OpenRGB with python and opencv
from PIL import ImageGrab
import numpy as np
from Xlib import display
import cv2
from openrgb import OpenRGBClient
from openrgb.utils import RGBColor
d = display.Display()
s = d.screen()
x, y = s.width_in_pixels, s.height_in_pixels