ag-psd 15.0.5 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/psdWriter.ts CHANGED
@@ -728,6 +728,12 @@ export function writeColor(writer: PsdWriter, color: Color | undefined) {
728
728
  writeUint16(writer, Math.round(color.g * 257));
729
729
  writeUint16(writer, Math.round(color.b * 257));
730
730
  writeUint16(writer, 0);
731
+ } else if ('fr' in color) {
732
+ writeUint16(writer, ColorSpace.RGB);
733
+ writeUint16(writer, Math.round(color.fr * 255 * 257));
734
+ writeUint16(writer, Math.round(color.fg * 255 * 257));
735
+ writeUint16(writer, Math.round(color.fb * 255 * 257));
736
+ writeUint16(writer, 0);
731
737
  } else if ('l' in color) {
732
738
  writeUint16(writer, ColorSpace.Lab);
733
739
  writeInt16(writer, Math.round(color.l * 10000));