random-display-p3-color

1.0.0 • Public • Published

random-p3-color

Generate a random display-p3 color.

Installation

npm install --save random-display-p3-color

Usage

var randomDisplayP3Color = require('random-display-p3-color')

randomDisplayP3Color()  // => 'color(display-p3 0 1 0)'
randomDisplayP3Color()  // => 'color(display-p3 0.128 0.781 1)'

or

import randomDisplayP3Color from 'random-display-p3-color'

randomDisplayP3Color()  // => 'color(display-p3 0 1 0)'
randomDisplayP3Color()  // => 'color(display-p3 0.128 0.781 1)'

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_).


Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i random-display-p3-color

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • mrmrs