psd
Version:
A general purpose Photoshop file parser.
22 lines (15 loc) • 519 B
text/coffeescript
LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'
module.exports = class SolidColor extends LayerInfo
: (key) -> key is 'SoCo'
constructor: (layer, length) ->
super(layer, length)
= = = 0
parse: ->
.seek 4, true
= new Descriptor().parse()
= Math.round ['Rd ']
= Math.round ['Grn ']
= Math.round ['Bl ']
colorData: -> ['Clr ']
color: -> [, , ]