Interface ElementDataUnknownNameMandatory<T>

Much like ElementDataUnknown but the name is mandatory.

interface ElementDataUnknownNameMandatory<T> {
    deadCell?: ((rel: Rel) => void);
    hitbox?: Hitbox;
    liveCell?: ((rel: Rel) => void);
    madeWithRule?: true;
    name: string;
    renderAs?: T;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

deadCell?: ((rel: Rel) => void)

Every frame of animation, pixelmanipulator iterates through each and every pixel on the screen. If this element is found, it calls this function on each of the locations defined in ElementDataUnknown.hitbox so long as the pixel matches the value in PixelManipulator.defaultId, without calling the same dead pixel twice.

hitbox?: Hitbox

ElementDataUnknown.deadCell will only be called on empty pixels within the hitbox of a live cell. Array of relative coordinate pairs. Optional, defaults to the result of neighborhoods.moore called with no arguments.

liveCell?: ((rel: Rel) => void)

Every frame of animation, pixelmanipulator iterates through each and every pixel on the screen. If this element is found, it calls this function.

madeWithRule

If present, indicates that this element was auto-generated

name: string

The name of the element.

renderAs?: T

Information on how to render this element