RPE Chart Utils
    Preparing search index...

    Function addLine

    • Create a new judge line with sensible defaults and append it to the chart's judgeLineList.

      The new line has:

      • One default event layer (alpha=255, moveX/Y=0, rotation=0, speed=10)
      • Default control node arrays (identity transforms)
      • An empty notes array

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • options: CreateLineOptions = {}

        Line creation options.

      • createDefualtEvents: boolean = true

      Returns number

      The index of the newly added line.

      const li = addLine(chart, { name: 'FX', texture: 'line.png', zOrder: 10 });
      addMoveXEvent(chart, li, 0, 0, 4, -675, 675);