Pafiume Colors
Random color scheme generator
Install
Using npm:
$ npm install pafiume-colors
Using yarn:
$ yarn add pafiume-colors
Using bower:
$ bower install pafiume-colors
Load
From npm:
const pafiumeColors = ;
From Bower:
The pafiumeColors
Object loads into global scope from the above script.
Usage
pafiumeColors
The pafiumeColors
Object contains multiple API to grab random colors:
random()
color // => {...};
get(name)
Produces a specific color.
color; // => {...};
scheme(quantity)
Produces an array of unique colors. Can produce quantity anywhere from 0 - total available colors.
- Unspecified quantity results in array of 1 color
- Negative number quantity results in array of 1 color
- Quantity greater than available colors results in array of all colors
colorscheme3; // => [ {...}, {...}, {...} ];colorscheme; // => [ {...} ];colorscheme-3; // => [ {...} ];colorscheme100; // => [ {...} ... ];
getAll()
Produces an array of all colors.
color; // => [ {...} ... ];
Color Object
Each color Object produced by pafiumeColors
has two properties
name
- String representing name of color sethues
- Array containing hex color Strings, ordered light to dark
name: 'infinity' hues: '#ACABB3' '#8E8C97' '#5F6062' '#24232A'
Colors