rednode API - v0.80.1
    Preparing search index...

    Interface InkImageProps

    Properties of ink.image.

    interface InkImageProps {
        align?: InkAlign;
        anchor?: InkAnchor;
        atlas?: string;
        color?: InkColor;
        grow?: number;
        height?: number;
        icon?: string;
        id?: string;
        look?: "game" | "plain";
        margin?: number | readonly [number, number, number, number];
        opacity?: number;
        part?: string;
        tone?: InkTone;
        visible?: boolean;
        width?: number;
        x?: number;
        y?: number;
    }

    Hierarchy (View Summary)

    Index
    align?: InkAlign

    In a column: "left", "center", "right" or "fill" (the column's width). In a row: "top", "center", "bottom" or "fill". Wins over the container's align.

    anchor?: InkAnchor

    Where the node sits in a canvas. Children of column and row are placed by them instead.

    atlas?: string

    An .inkatlas depot path.

    color?: InkColor

    Its color (a tint: text and shapes take it as their color).

    grow?: number

    In a column or row with a size of its own: takes this share of the space left.

    height?: number

    The node's height.

    icon?: string

    One of the game's icons, by its TweakDB record, such as a UIIcon.* record: REDnode reads its atlas and part (atlasResourcePath, atlasPartName). Wins over atlas and part.

    id?: string

    A name to find the node by with InkMount.get.

    look?: "game" | "plain"

    "game" takes the game's look: its style sheet, its colors and, for text, its fonts and sizes. Giving a tone or a text style means "game" too. "plain" (the default for these basic tags) is styled by its own props only.

    margin?: number | readonly [number, number, number, number]

    Space around the node: one number for every side, or [left, top, right, bottom].

    opacity?: number

    From 0 (invisible) to 1.

    part?: string

    The part of the atlas to show.

    tone?: InkTone

    One of the game's color roles; see InkTone. A color given wins over it.

    visible?: boolean
    width?: number

    The node's width. Give width and height together.

    x?: number

    Moves the node from its anchor, in the layer's units, to the right.

    y?: number

    Moves the node from its anchor, in the layer's units, down.