/gradient-color-picker

Linear gradient color picker that aims to be super easy both for developers and end users.

Primary LanguageJavaScriptMIT LicenseMIT

License: MIT

Liner Gradient Color Picker (lgcolor.js)

lgcolor is a linear gradient color picker component that aims to be super easy both for developers to install and for the end users to use.

gradient-color-picker

Installation in two lines

<head>
  ...
  <link rel="stylesheet" href="assets/css/lgcolor.css">
  ...
</head>

...
...
...

<script src="assets/js/lgcolor.js"></script>
</body>

Field : <input class="lgcolor" value="linear-gradient(to bottom, #00f260 0%, #0575e6 100%)">

Usage examples

Explore example at https://www.mohammedrishad.com/gradient-color-picker/

Features

  • No framework needed: lgcolor is a completely self-sufficient JavaScript library consisting of only one JS file. It doesn't need any frameworks (jQuery, Dojo, MooTools etc.) but it can certainly coexist with them.

  • Cross-browser: All modern browsers are supported, including: Firefox, Chrome, Safari, Opera, Internet Explorer 7 and above and others...

  • Highly customizable: Whether you need to change the color picker's size/colors or attach a function to the onchange event, lgcolor can be fine-tuned to perfectly suit your web project.

Website

For more info on lgcolor project, see lgcolor website

License

MIT License

Copyright (c) 2018 Mohammed Rishad

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.