leaverou / css-colors Goto Github PK
View Code? Open in Web Editor NEWShare & convert CSS colors
Home Page: http://leaverou.github.io/css-colors
Share & convert CSS colors
Home Page: http://leaverou.github.io/css-colors
http://lea.verou.me/projects/ and http://lea.verou.me/2011/09/css-coloratum-convert-and-share-css-colors/ are both linking to http://css.coloratum.com/ for this project, which does not exist anymore. It would be great to update both links to the new one
rgba(0,0,0,.9)
display :
hsla(NaN, Infinity%, 0%, .9)
http://css.coloratum.com is expired.
If you follow a link to Coloratum that specifies a valid color, Coloratum immediately adds that color to the history, creating a "duplicate" history entry. This means that you have to hit Back twice to actually return to the page that had the original link.
You should avoid adding a history entry when the parsed color came from the URL rather than manual entry.
The entry box uses partially-transparent black as its background color, which means that it disappears completely if your entered color is very dark.
Instead, you should detect when the current color is 'dark' and switch to using partially-transparent white. A simple way to do so is to use this formula for lightness:
.2126 * Math.pow(r,2.2) + .7152 * Math.pow(g,2.2) + .0722 * Math.pow(b,2.2)
(This assumes that r, g, and b are in the range [0,1].)
If the lightness is > .5, use black background. If < .5, use white background.
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.