Class RecordingVisualizer

2D recording visualizer using Plotly.

Implements

  • Visualizer

Constructors

Properties

animationId: null | number = null
divId: string = ''
gui?: GUI
simulation: Simulation
stats?: Stats
universeTrails: PlotlyUniverseTrail[] = []

Methods

  • Adds default controls using lil-gui to the visualization.

    Parameters

    • parentElement: HTMLElement

      parent element to place the controller div in.

    Returns void

  • Clear all trails in the visualization.

    Parameters

    • Optional i: number

      index of the universe to clear trails for.

    Returns void

  • Simulate and play the visualization.

    Parameters

    • divId: string

      div id to render the visualization in.

    • width: number

      width of the visualization.

    • height: number

      height of the visualization.

    • recordFor: number

      number of seconds to record for.

    • recordSpeed: number

      speed to record the visualization at.

    Returns void

Generated using TypeDoc