I am using PSD.JS (a photoshop PSD file parser for NodeJS and browsers) to parse a few PSD files. When the parser extracts the information for a text layer, the color information is returned as an array.
e.g: colors": [ [ 102, 0, 255, 0, 255 ], [ 102, 0, 255, 0, 255 ] ]
But the array contains 5 values instead of 3 for RGB or 4 for CMYK.
Please can somebody help me understand why the color is represented with 5 values?
And is there a way to convert this into RGB equivalent?
I am pretty sure this is not an issue with PSD.JS but an implementation detail.