• Construct a RectNode. The fill colour is positional; other props go in the optional second argument.

    Parameters

    • fill: number
    • Optional args: Omit<RectNode, "fill" | "type">

    Returns RectNode