Giter Club home page Giter Club logo

Comments (6)

Fooidge avatar Fooidge commented on August 15, 2024

I'll look into it. Based on my understanding it's a matter of finding a slightly offset complement and then inverting the value. If you wanna take a crack at it be my guest.

from pleasejs.

etcook avatar etcook commented on August 15, 2024

Cool - I'll research how to invert the HSV output and get back to you. Shouldn't be difficult. Do you have a preferred naming convention for contrasting colors? I'll likely just use your existing complementary function and then invert the result. Thoughts?

from pleasejs.

Fooidge avatar Fooidge commented on August 15, 2024

You could do that, but I don't think a good contrast is an exact complement. For instance, orange and blue are famous contrasts. And you'd probably just take the distance of the value from 0 or 1 and make the contrast color have that distance from the opposing side.

from pleasejs.

Fooidge avatar Fooidge commented on August 15, 2024

Added contrast function

from pleasejs.

etcook avatar etcook commented on August 15, 2024

@Fooidge You got to it before I had a chance to. Thanks a million!

from pleasejs.

Fooidge avatar Fooidge commented on August 15, 2024

It's what I do ;)

Jordan Checkman

On Jul 16, 2014, at 1:07 PM, "E.T.Cook" [email protected] wrote:

@Fooidge You got to it before I had a chance to. Thanks a million!


Reply to this email directly or view it on GitHub.

from pleasejs.

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.