Skip to content

mrmrs/random-lch-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-lch-color

Generate a random lch color.

Installation

npm install --save random-lch-color

Usage

var randomLCHColor = require('random-lch-color')

randomLCHColor()  // => 'lch(50% 100 100)'
randomLCHColor()  // => 'lch(82% 120 204)'

or

import randomLCHColor from 'random-lch-color'

randomLCHColor()  // => 'lch(75% 60 0)'
randomLCHColor()  // => 'lch(49% 132 290)'

Acknowledgements

Inspired by random-hex-color by John Otander which is repackaged from a post by Paul Irish.

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted for generative doings by Adam Morse (@mrmrs_).


About

A random LCH color for generative design projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published