Git Product home page Git Product logo

Comments (8)

IvoLondon avatar IvoLondon commented on August 15, 2024 1

I could give this a go if it hasn't been taken?

from github-readme-streak-stats.

DenverCoder1 avatar DenverCoder1 commented on August 15, 2024 1

@IvoLondon That would be great! If you have any questions, feel free to ask!

from github-readme-streak-stats.

DenverCoder1 avatar DenverCoder1 commented on August 15, 2024

Possible implementation: https://jscolor.com/ (uses input element)

from github-readme-streak-stats.

IvoLondon avatar IvoLondon commented on August 15, 2024

I need your thoughts on something I just found out - in order to add the opacity controller , the colour needs to be in a RGBA format. The queries in request const imageURL = ${window.location.origin}?${query}; are encoded and passed, but I suspect that a HEX is expected instead. Would you be able to amend this on the backend side or should I find a way to convert it before the request is being made? @DenverCoder1

from github-readme-streak-stats.

DenverCoder1 avatar DenverCoder1 commented on August 15, 2024

@IvoLondon Making the query be in 6-digit HEX for opaque colors and 8-digit HEX for transparent colors would be the best. Although I haven't tried it, it seems like https://jscolor.com/ makes the value automatically in HEX, but the "#" will need to be removed (and the "FF" if it is 8 digits and ends with "FF").

from github-readme-streak-stats.

IvoLondon avatar IvoLondon commented on August 15, 2024

Alright, I will sort this out and I will let you know. I've created a pull request, in case you want to see the changes - #58 (not sure if it was supposed to be done, when I'm fully ready?). Thanks!

from github-readme-streak-stats.

DenverCoder1 avatar DenverCoder1 commented on August 15, 2024

Looks good, instead of "rgba" in the presets, you can use "hexa" to make it automatically use HEX.

from github-readme-streak-stats.

DenverCoder1 avatar DenverCoder1 commented on August 15, 2024

If you can't find a way to easily make it 6 digits when there's no transparency, it's perfectly fine to keep it as 8-digit HEX for all colors.

It should be pretty simple to convert it in the update function while reducing the params though.

from github-readme-streak-stats.

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.