1.0.0 • Published 5 years ago

color-brightness v1.0.0

Weekly downloads
158
License
GPL-3.0
Repository
github
Last release
5 years ago

color-brightness

Calculates the perceived brightness of a color

Installing

Node.js environment

npm i color-brightness --save

Browser environment

Download the latest version of color-brightness here.

Usage

Node.js environment

const colorBrightness = require("color-brightness");

console.log(colorBrightness.getBrightness(0, 0, 0));
//=> 0

console.log(colorBrightness.getBrightness(255, 255, 255));
//=> 255

console.log(colorBrightness.getBrightness(30, 200, 50));
//=> 117.88006998640608

Changelog

You can read the changelog here.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL-3.0 License - see here for more details.

1.0.0

5 years ago

0.1.0

6 years ago