Skip to content

Instantly share code, notes, and snippets.

View markjay4k's full-sized avatar

mark markjay4k

View GitHub Profile
@markjay4k
markjay4k / animated3Dplot.py
Last active April 24, 2024 00:13
animated 3D example using PyQtGraph and OpenGL
# -*- coding: utf-8 -*-
"""
Animated 3D sinc function
"""
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.opengl as gl
import pyqtgraph as pg
import numpy as np
import sys
@markjay4k
markjay4k / drawlines_kmeans.py
Last active July 18, 2022 12:26
a more compact way of drawing 2 lines on the screen (built on Sentdex's GTA 5 series)
import cv2
from directkeys import PressKey, ReleaseKey
from grabscreen import grab_screen
import numpy as np
import pyautogui
from sklearn.cluster import KMeans
import threading
import time
uhd_x = 1520