Tweak color.js.

This commit is contained in:
Artem Sapegin 2012-12-20 18:25:56 +04:00
parent ba132ebeba
commit fb6f0fb69b

View File

@ -16,7 +16,7 @@ var format = 'hsl';
var args = process.argv.splice(2); var args = process.argv.splice(2);
if (!args.length) helpme(); if (!args.length) helpme();
if (args[0] == '--rgb') { if (args[0] === '--rgb') {
format = 'rgb'; format = 'rgb';
args = args.splice(1); args = args.splice(1);
} }
@ -27,7 +27,7 @@ if (!rgb) helpme();
var alpha = args[1]; var alpha = args[1];
if (format == 'hsl') { if (format === 'hsl') {
console.log(toHslString(rgb2hsl(rgb), alpha)); console.log(toHslString(rgb2hsl(rgb), alpha));
} }
else { else {