Giter Site home page Giter Site logo

Comments (4)

LarsWerkman avatar LarsWerkman commented on August 20, 2024

@frigus02 Hi i know what problems you get and thanks for helping me out. I get one problem though with the normalizeColor i think that i implements it wrong but it seems not to make really a difference when i replace the normColor, could you show me more of how you implemented that?? Thanks!!

from holocolorpicker.

frigus02 avatar frigus02 commented on August 20, 2024

Hi. Of course I can. It was not really well explained. I also have to say, that my first fix did not overall fix this. But I think I'm coming closer. So here is what I have now. Both methods are from the ColorPicker class.

In setColor I edited lines 15-19 and also added line 25.

In normalizeColor I added lines 33-36. This is different, from what I wrote before. The intention of this is to remove the changes, that saturation and value make to red, blue and green. This seems to work for me now.

(Line numbers refer to the linked gist.)

from holocolorpicker.

frigus02 avatar frigus02 commented on August 20, 2024

Just found out, I had another bug in my solution. In setColor of ColorPicker class, mOpacityBar.setColor() has to be called before mSVBar.setColor(). I updated the gist. Sorry, hopefully this was the last change.

EDIT: And before the the different return statements in calculateColor the variable mColor has to be set.

from holocolorpicker.

frigus02 avatar frigus02 commented on August 20, 2024

I added a bit more functionality. In specific, I customized the views, to resize and better fit on small devices. It's a bit more code and make a pull request for this.

from holocolorpicker.

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.