Socket
Socket
Sign inDemoInstall

color-luminance

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

2

index.js

@@ -1,2 +0,2 @@

module.exports = rec709;
module.exports = rec601;
module.exports.rec601 = rec601;

@@ -3,0 +3,0 @@ module.exports.rec709 = rec709;

{
"name": "color-luminance",
"description": "bare-bones color luminance functions",
"version": "1.0.0",
"version": "2.0.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -18,3 +18,3 @@ [![browser support](https://ci.testling.com/mattdesl/color-luminance.png)](https://ci.testling.com/mattdesl/color-luminance)

The exported function uses the [Rec. 709 standard](http://en.wikipedia.org/wiki/Rec._709) for coefficients (used in most HDTV formats).
The exported function uses the [Rec. 601 standard](http://en.wikipedia.org/wiki/Rec._601) for coefficients (used in most digital video formats).

@@ -21,0 +21,0 @@ More details [here](http://haugk.co.uk/2012/11/22/luma-rec-601-vs-rec-709/).

@@ -9,3 +9,3 @@ var test = require('tape').test;

t.equal( luminance(R, G, B), 36.3508, 'should export rec709 by default' );
t.equal( luminance(R, G, B), 34.723, 'should export rec601 by default' );
t.equal( luminance.rec709(R, G, B), 36.3508, 'should export rec709 as a method' );

@@ -12,0 +12,0 @@ t.equal( luminance.rec601(R, G, B), 34.723, 'should export rec601 as a method' );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc