Skip to content

Instantly share code, notes, and snippets.

@BluumDK
BluumDK / index.html
Created December 24, 2022 12:35
Parallax Gallery Scroll
<div class="container">
<div id="level1" class="row">
<div class="col1">
<div class="gallery">
<div class="gallery_item">
<img src="https://images.unsplash.com/photo-1585919751768-dff94a989751?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80" />
import time
import keyboard
import pyautogui
import win32api
import win32con
def click(x, y):
win32api.SetCursorPos((x, y))
# X: 751 Y: 624 - Snake start position.
# RGB: ( 78, 124, 246) - Snake front.
# X: 1220 Y: 623 RGB: (162, 209, 73) - 1. turn
# X: 1307 Y: 340 RGB: (162, 209, 73) - 2. turn
# X: 630 Y: 309 RGB: (170, 215, 81) - 3. turn
# X: 592 Y: 909 RGB: (170, 215, 81) - 4. turn
import pyautogui
if pyautogui.pixel(1220, 623, (162, 209, 73)):