Created
February 14, 2014 16:52
-
-
Save alagu/9004692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require 'fs' | |
path = require 'path' | |
PSD = require './psd.js/src/psd' | |
Parser = require './psd.js/src/parser' | |
psd = PSD.fromFile process.argv[2] | |
psd.parse() | |
for layer in psd["layerMask"]["layers"] | |
if layer["adjustments"].hasOwnProperty "solid_fill" | |
console.log Parser.parseColor(layer["adjustments"]["solid_fill"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment