@antadesign/anta
    Preparing search index...

    Interface AvatarGenConfigUnreviewed

    Full generation config. Every field is optional; DEFAULT_CONFIG fills gaps.

    interface AvatarGenConfig {
        bgColor?: ColorDim;
        headColor?: ColorDim;
        bodyColor?: ColorDim;
        figureScale?: ScalarDim;
        figureTranslate?: Vec2Dim;
        figureAngle?: ScalarDim;
        headAngle?: ScalarDim;
        bodyAngle?: ScalarDim;
        figureGap?: ScalarDim;
        headRadiusTop?: ScalarDim;
        headRadiusBottom?: ScalarDim;
        bodyBorderRadius?: ScalarDim;
        harmony?: boolean;
    }
    Index
    bgColor?: ColorDim
    headColor?: ColorDim
    bodyColor?: ColorDim
    figureScale?: ScalarDim
    figureTranslate?: Vec2Dim
    figureAngle?: ScalarDim
    headAngle?: ScalarDim
    bodyAngle?: ScalarDim
    figureGap?: ScalarDim

    Space between head and body, as a fraction of head height (0 to 1).

    headRadiusTop?: ScalarDim

    Head top corner radius. 0 is a square corner and 1 is fully round; above 1 the head elongates upward into an oval.

    headRadiusBottom?: ScalarDim

    Head bottom corner radius, on the same 0-to-1-and-beyond scale. The bottom is never rounded less than the top — a head reads with its jaw at least as round as its crown — so a smaller value here is raised to match the top.

    bodyBorderRadius?: ScalarDim

    Shoulder corner radius, 0 (square) to 1 (fully round).

    harmony?: boolean

    Derive headColor and bodyColor hue from the background so the parts stay coordinated with the background.