Giter Club home page Giter Club logo

Comments (5)

gizmosachin avatar gizmosachin commented on June 14, 2024 1

Ah okay, no worries!

Based on the way the colors are drawn in the GradientView there'll always be a hard drop off unfortunately (Snapchat's new color picker actually does this as well). I noticed it's particularly bad when you have a longer slider though, so I'll see if I can come up with a fix and push that. If it'd be more preferable to just hide the black and white colors altogether instead (the old behavior), you can also set the insets for black and white to zero:

let gradientView = colorSlider.gradientView
gradientView.blackInset = 0
gradientView.whiteInset = 0

from colorslider.

gizmosachin avatar gizmosachin commented on June 14, 2024

Oops, that's really bad and completely unintentional. Will push a fix.

from colorslider.

piemonte avatar piemonte commented on June 14, 2024

(sorry, my screenshot represents the behavior not the actual visuals)

from colorslider.

gizmosachin avatar gizmosachin commented on June 14, 2024

Forget what I said earlier - GradientView now draws the gradient so it's continuous, even with the black and white at the ends. pod update to v4.1 should do the trick. 😄

from colorslider.

piemonte avatar piemonte commented on June 14, 2024

🙌

from colorslider.

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.