Type alias UniverseConfig

UniverseConfig: {
    color: string | string[];
    currState: State;
    label: string;
    prevState: State;
    radiusScale: number;
    simFunc: SimulateFunction;
    transformations: Transformation[];
}

Container for a Universe's configuration.

Type declaration

  • color: string | string[]

    Color of the bodies in the Universe. A single color applied to all bodies or an array of colors applied to each body respectively. Length of the array should match the number of bodies in the state.

  • currState: State

    Current state of the Universe.

  • label: string

    Label of the Universe.

  • prevState: State

    Previous state of the Universe.

  • radiusScale: number

    Scale the radius of the bodies in the Universe. Default is 1.

  • simFunc: SimulateFunction

    Simulation function used to simulate the Universe.

  • transformations: Transformation[]

    Array of transformations to be applied to the Universe's state after simulation and before visualization.

Generated using TypeDoc