Giter Club home page Giter Club logo

gradient's Introduction

๐ŸŽจ Color gradient designer

A simple javascript based color gradient designer for your browser. Help's you create awesome gradients and generates the appropriate code for usage in your project via copy & paste or file download. You can share the gradients as URL and save your favourites in a personal gallery.

https://eltos.github.io/gradient

Supports code and file generation for

Feel free to open an issue or submit a merge request to support additional formats.

๐Ÿช™ DONATE โค๏ธ SAY THANKS

Documentation

Gradient hash format

This section describes the encoding of gradients as used for the designer in the URL hash.

It has the form [name=][pos:]RRGGBB{-[pos:]RRGGBB}

The optional name in the form name= is followed by a list of nodes (at least one) separated by dashes -. The name is an arbitrary string which may not contain an equals character =. Each node is described by an optional position and mandatory color in the form pos:RRGGBB or RRGGBB. The position percentage pos is a floating point number between 0.0 and 100.0. The color RRGGBB is the hex color code where leading zeros may be omnitted. Nodes with an explicit position are not required to be in correct order, but if multiple nodes have equal positions their order matters. If one or multiple positions are omnitted, the affected nodes are equally distributed in the gap.

The normalized form (as generated by the program) states positions with one digit precision for either all or none of the nodes, ensures their correct order and outputs hex color codes with six characters.

Examples:

gradient's People

Contributors

eltos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

englianhu dexit

gradient's Issues

Generated photoshop gradient file is incorect?

To Reproduce

  1. Create random gradient
  2. Save as photoshop gradient file.
  3. Open the downloaded file using this online gradient viewer
  4. Nothing is shown

Stack Trace

If applicable, paste the full stack trace as found in your browsers console (F12) here

Screenshots
Add screenshots to help explain the issue

Environment

  • OS: Ubuntu
  • Browser and version: Firefox 114.0.1
  • Git revision

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.