apearson / goodlock-hex2color Goto Github PK
View Code? Open in Web Editor NEWAn automated Goodlock color picker
License: MIT License
An automated Goodlock color picker
License: MIT License
Noted here
I've let the comments on this code get very ugly
Without adb in my $PATH:
❯ python hex2goodlock.py '#253f3f'
Input Hex: #253f3f
Hue Screen Location: 924.0px
Saturation Screen Location: 249.0px
Value Screen Location: 1390.0px
./mac-tools/adb shell input tap 850 924.0 && adb shell input tap 249.0 1390.0
sh: adb: command not found
❯ which adb
adb not found
MacBook Air Early 2015; happy to share any other debugging info!
@blindingstars Not sure if you care but I believe your email is shown in the recording video.
No luck on my Mac so far; will try Windows after a meeting.
First, tried without ADB in my $PATH:
❯ python hex2goodlock.py '#253f3f'
Input Hex: #253f3f
Hue Screen Location: 924.0px
Saturation Screen Location: 249.0px
Value Screen Location: 1390.0px
./mac-tools/adb shell input tap 850 924.0 && adb shell input tap 249.0 1390.0
sh: adb: command not found
❯ which adb
adb not found
No dice there. With ADB installed:
❯ brew install android-platform-tools
❯ which adb
/usr/local/bin/adb
❯ adb devices
List of devices attached
24923391 device
❯ python hex2goodlock.py '#253f3f'
Input Hex: #253f3f
Hue Screen Location: 924.0px
Saturation Screen Location: 249.0px
Value Screen Location: 1390.0px
adb shell input tap 850 924.0 && adb shell input tap 249.0 1390.0
USB debugging was for-sure enabled, GoodLock was on the color selector with the 4 hexagons. brew install android-platform-tools
is a nice way for Mac users to get their adb
and fastboot
, if they already have homebrew
installed... but if they do, they probably don't need much walkthrough anyways.
I'll keep you posted!
Non condensed mode has different box points than condensed mode
Need to figure out if there is an adb command for getting standard/condensed mode.
Also need to figure out new box size for standard mode
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
Need to verify inputs so not to get into unknown states
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.