@qrcommunication/gigapdf-lib — SDK API reference - v0.110.3
    Preparing search index...

    Type Alias Color

    Color:
        | { space: "rgb"; rgb: number }
        | { space: "cmyk"; c: number; m: number; y: number; k: number }
        | { space: "gray"; gray: number }
        | {
            space: "separation";
            name: string;
            tint: number;
            cmyk: [number, number, number, number];
        }
        | { space: "icc"; components: number[]; profile: Uint8Array }

    A fill colour in any authored colour space (ISO 32000-1 §8.6), for GigaPdfDoc.addFilledRectangle/GigaPdfDoc.addFilledPolygon/ GigaPdfDoc.addTextColor. cmyk/gray are press-ready; separation is a spot ink (with its DeviceCMYK tint approximation); icc embeds a profile. CMYK/gray/tint components are 01; rgb is packed 0xRRGGBB.