DDNet - v0.8.1
    Preparing search index...

    Interface TeeSkinRenderOptions

    Skin rendering options

    interface TeeSkinRenderOptions {
        customColors?: {
            bodyTWcode?: null | number;
            decorationTWcode?: null | number;
            eyesTWcode?: null | number;
            feetTWcode?: null | number;
            markingTWcode?: null | number;
        };
        eyeVariant?: TeeSkinEyeVariant;
        saveFilePath?: null
        | string;
        size?: number;
        viewAngle?: number;
    }
    Index

    Properties

    customColors?: {
        bodyTWcode?: null | number;
        decorationTWcode?: null | number;
        eyesTWcode?: null | number;
        feetTWcode?: null | number;
        markingTWcode?: null | number;
    }

    Custom colors to use in TW color code format.

    Type declaration

    • OptionalbodyTWcode?: null | number

      TW code for the body color.

    • OptionaldecorationTWcode?: null | number

      TW code for the decoration color.

    • OptionaleyesTWcode?: null | number

      TW code for the eyes color.

    • OptionalfeetTWcode?: null | number

      TW code for the feet color.

    • OptionalmarkingTWcode?: null | number

      TW code for the marking color.

    Both TW color codes for feet and body must be provided for 0.6 skins.

    eyeVariant?: TeeSkinEyeVariant

    The eye variant to render with.

    "eye-default"
    
    saveFilePath?: null | string

    If provided, will save the output buffer as a png to the specified path.

    "./skins/output.png"
    
    size?: number

    The size in pixels of the final image.

    96
    
    viewAngle?: number

    The angle in degrees at which the tee should be looking

    0 is right

    0