Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paramaggarwal/skintone
Detect if a color value is a shade of skin.
https://github.com/paramaggarwal/skintone
Last synced: about 1 month ago
JSON representation
Detect if a color value is a shade of skin.
- Host: GitHub
- URL: https://github.com/paramaggarwal/skintone
- Owner: paramaggarwal
- License: mit
- Created: 2015-03-17T08:05:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-17T08:27:49.000Z (almost 10 years ago)
- Last Synced: 2024-04-13T21:57:24.569Z (10 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# skintone
Detect if a color value is a shade of skin.
# Installation
```
npm install skintone
```# Usage
```
var isSkin = require('skintone');// skin shade
console.log(isSkin(194, 144, 125));
-> true// red apple shade
console.log(isSkin(229, 13, 42));
-> false```
# Author
```
/*
* Pulled into a separate npm module from
* https://github.com/pa7/nude.js/blob/master/noworker.nude.js
* by Param Aggarwal (http://paramaggarwal.com)
*
* Original License:
* Nude.js - Nudity detection with Javascript and HTMLCanvas
*
* Author: Patrick Wied ( http://www.patrick-wied.at )
* Version: 0.1 (2010-11-21)
* License: MIT License
*/
```# License
MIT