Comments (2)
Hi @DatCaptainHorse ! Thank you for your suggestion. I wanted to improve it, but I wasn't able to find a better and working solution so far. The problem is to get the region's average color in GJS in time. The only way I found was to use the gnome-shell function getColorPixel(), which is at least... fast enough if only a few pixels are used.
I tried several approaches like gstreamer or taking screenshots of the whole desktop and analyzing. Taking screenshots is too slow. Much slower than calling getColorPixel() a few times. I hope someday I will change this feature to use the gstreamer but currently it is not possible. Long story short: this issue: https://gitlab.gnome.org/GNOME/gjs/-/issues/557 is stopping me. I can not connect to the signal from gstreamer successfully.
Do have an idea of how to get the screen color fast enough in gjs? Please share the technical knowledge:-) ...or at least which component would you use? I will happily improve the sync feature with such a hint.
from hue-lights.
Hi @vchlum , if I could add my thoughts to this and start with a big thank you for this software - I love it. I just bought a Hue Gradient Light Strip for my PC and it's working in Linux, using your software, in Wayland. Huestacean and Huenicorn don't work, so thank you!!
I think the screen colour picker is not the main issue (for me, at least). It seems that when I'm playing a game, or am on my desktop, the colours get sampled OK.
The main issue is that there is no blending of colours as they transition from one to the next. What I mean by this is:
ColourGetsSampled -> NewColourGetsSampled -> InstantChange (it's an instant transition and is quite jarring)
I would suggest a transition.
ColourGetsSampled -> NewColourGetsSampled -> GradualChange
Now I don't know how to code, but this YouTube video for a complete different app probably shows it best:
https://www.youtube.com/watch?v=HwB3eh-D870
As mentioned earlier, if this colour-blending could happen faster-slower depending on "Intensity" setting, that would be helpful.
Does this make sense?
from hue-lights.
Related Issues (20)
- Sync is not working HOT 2
- Odd flickering when going full screen on Linux HOT 2
- Gnome 44 is out and hue-lights is marked as incompatible HOT 2
- The sliders are always black instead of the color of the lights HOT 1
- Right clicking on a light broke the app HOT 2
- Allow changing color of an entire zone at once HOT 2
- Add a GitHub link to the "`About`" page HOT 1
- Ubuntu 22.04.3 LTS can't install hue-lights after apt upgrade or git pull HOT 1
- Single Screen Selection (1 / Primary Monitor) doesn't work for me.
- Invalid yt link in README.md HOT 1
- Consider using libadwaita? HOT 1
- Gradient lightstrip support HOT 4
- Manual installation suddenly not showing in ubuntu HOT 1
- sync with wayland
- Very unresponsive HOT 1
- JS ERROR: ReferenceError: Utils is not defined HOT 1
- Sync with song HOT 1
- Change Colors when Music Syncing HOT 2
- [Feature request] Custom Scenes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hue-lights.