Giter VIP home page Giter VIP logo

Comments (2)

vchlum avatar vchlum commented on June 24, 2024

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.

hobbesjaap avatar hobbesjaap commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.