Skip to content

cscape/stdcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Standard Color

Find the nearest Cyberscape Standard color from RGB or HEX.

Install

# Using npm
npm install --save cscape/stdcolor

# Using yarn
yarn add cscape/stdcolor

Example

const StdColor = require('@cyberscape/stdcolor')

// Absolute red
console.log(StdColor(255, 0, 0))

// Hex colors
console.log(StdColor('#f00'))

API

StdColor(r, g, b)

Returns: An RGB array of numbers with the closest matched values.

StdColor(hexString)

Returns: An RGB array of numbers with the closest matched values.

License

MIT © Cyberscape.

About

🔴📏 Find the nearest Cyberscape Standard color from RGB or HEX.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors