safaelmali / hex-to-rgb Goto Github PK
View Code? Open in Web Editor NEWConvert HEX color codes to RGB format!
Home Page: https://hextorgb.netlify.com/
License: MIT License
Convert HEX color codes to RGB format!
Home Page: https://hextorgb.netlify.com/
License: MIT License
It should display an error for all the values greater than #ffffff , but it is working and showing results for hex like #asafaz, #fgaraf, #asasas, #ararar, etc.
Basically I'm able to put letters which come after 'f' at all the even places of the hex....like #azazaz won't show an error, but #zzazaz or #zzzzzz will.
The catch is eg. if I input #afafaf, it will show 175,175,175, but if I input #agafaf, it will show 10,175,175. It is just omitting the 2nd digit of the hex and showing only the value of 'a'. Similarly #bgafaf will give 11,175,175 and #cgafaf will give 12,175,175, and this is true for all the pairs, like #afaraf will give 175,10,175 and #ararar will give 10,10,10.
Secondly, I think you should limit the input to only 6 digits, as it is able to take 7 digits after # at present.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.