Git Product home page Git Product logo

Comments (5)

jariz avatar jariz commented on May 23, 2024 1

Vibrant isn't an exact copy of Palette. I'm satisfied with it's results, and I don't really see it as an issue.
But if somebody wants to improve it to be more matching with the 'real thing' then they can go ahead and send a PR.
For 1:1 results check out the sweet Material Palette Generator by @marijnvdwerf.

from vibrant.js.

marijnvdwerf avatar marijnvdwerf commented on May 23, 2024 1

Also, if you're able to use PHP, I recommend https://github.com/marijnvdwerf/material-palette-php. I'm way better in PHP than in JS, and I was able to port this fairly easily. It's based on the latest version of the Android library, and should (technically) offer closer results.

from vibrant.js.

marijnvdwerf avatar marijnvdwerf commented on May 23, 2024

I think the colours used in sample imagery is not really generated by Pallete. Those bright blue and red don't even appear in the artwork in the "screenshot", let alone being able to survive Pallette's algorithm.

from vibrant.js.

Pupix avatar Pupix commented on May 23, 2024

@marijnvdwerf They do not appear directly indeed, but the artwork has shades of red/blue in it. That's why I think there's some kind of post processing going on, trying to match the raw colors to the palette (500 for red and A700 for blue)

@jariz It was just a question, not an issue. GitHub doesn't allow users to tag their issues (at least I haven't been able to find out how).

from vibrant.js.

jariz avatar jariz commented on May 23, 2024

I think it just grabs a random color from the material color scheme for the secondary color. (maybe using the image as seed or something to make sure the generated colors stay the same)
Or it's just hardcoded 😛

from vibrant.js.

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.