Code Monkey home page Code Monkey logo

colorflow.js's Introduction

Javascript Color Conversion and Scheming Library

Licensed under cc by-sa 3.0 with attribution required

Colorflow has been greatly extended and improved, and is now integrated into the OpenUI project (ouijs.org) as the colors utility class, it is included here as a stand alone script.

####Documentation / Use For full documentation on use and available methods, please refer to the OpenUI API documentation for the color utility class

Include colorflow.min.js into your page, methods can be accessed via $ui.color

####Methods

The below methods are available at the time of writing:

algorithmic Generate algorithmic color palette

complement Generate (palette of) complementary color(s) from passed HEX color string

darken Darken a color by a percentage amount

hex2hsl Convert a HEX color string to a HSL array

hex2hsv Convert a HEX color string to a HSV array

hex2rgb Convert a HEX color string to an RGB

hsl2hex Convert an HSL array to a HEX color string

hsl2hsv Convert an HSL array to HSV array

hsl2rgb Convert an HSL array to a RGB array

hsv2hex Convert an HSV array to a HEX color string

hsv2hsl Convert an HSV array to HSL array

hsv2rgb Convert an HSV array to a RGB array

lighten Lighten a color by a percentage amount

pentadic Generate pentadic color palette

percentage Generate a color from a percentage point between two colors

random Generate a series of color biased (high saturation/lightness) randomized HEX color strings

rgb2hex Convert an RGB array to a HEX color string

rgb2hsl Convert an RGB array to a HSL array

rgb2hsv Convert an RGB array to a HSV array

saturate Saturate a color by a percentage amount

desaturate Desaturate a color by a percentage amount

scale Scale either hue, saturation or value of a color by a percentage amount

tetradic Generate tetradic color palette

triadic Generate triadic color palette

colorflow.js's People

Contributors

sw4 avatar

Watchers

James Cloos avatar

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.