gyanl / chromagen Goto Github PK
View Code? Open in Web Editor NEWRandom pretty color generator
Home Page: http://gyanl.com/ChromaGen/
License: MIT License
Random pretty color generator
Home Page: http://gyanl.com/ChromaGen/
License: MIT License
Should have :
-A way to generate a gradient using two randomly generated colors (from first to second color)
-A rotate button to rotate the orientation of the gradient cyclically from right-->left to bottom-->top to left-->right to top-->bottom (can be done by changing the "to x" parameter in the CSS).
-A copy CSS button that copies the css code for the gradient in the format
background: #4DA0B0; /* fallback for old browsers /
background: -webkit-linear-gradient(to left, #4DA0B0 , #D39D38); / Chrome 10-25, Safari 5.1-6 /
background: linear-gradient(to left, #4DA0B0 , #D39D38); / W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
See how it can be made smoother - possibly by reducing the animation duration for mobile, or somehow enabling hardware acceleration?
Minor issue, but ideally circle should stay selected/enlarged.
The copy all button should copy all of the currently generated hex codes, separated by spaces or commas.
Create UI to switch between solid color generator (currently index.html) and gradient generator (colorGradient.html)
User should be able to toggle between different colors using left and right arrow keys.
Some other key shortcuts have already been implemented. Reference: #11
CONTRIBUTING.md
This stackoverflow thread explains that a copy to the clipboard must be from a user. In other words, the current method for copying (invoking toast(color) ) is insufficient.
I have implemented a fix to this as well as added navigation between colors with the left and right arrow keys.
Find a more elegant way to display gradients and maybe change the copy/copy all text to "CSS copied". Needs some thought.
Currently users can only copy the color as a hex code, but sometimes it's useful to have rgb or hsl values for web development work, so there could be a dropdown that allows you to change between modes.
For eg. #0946f0 is equivalent to rgb(9, 70, 240) & hsl(224, 93%, 49%)
Make the page scrollable (issue arises when you generate a couple of gradients and then copy all - text goes out of the screen)
Also make the buttons and text fit inside the white rectangle - it's currently overflowing on mobile.
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.