UNPKG

@rian8337/osu-strain-graph-generator

Version:

A module for generating strain graph of an osu!standard beatmap.

14 lines (11 loc) 726 B
import { DifficultyCalculator } from '@rian8337/osu-difficulty-calculator'; import { DifficultyCalculator as DifficultyCalculator$1 } from '@rian8337/osu-rebalance-difficulty-calculator'; /** * Generates the strain chart of a difficulty calculator and returns the chart as a buffer. * * @param calculator The difficulty calculator to generate the strain graph for. * @param beatmapsetID The beatmapset ID to get background image from. If omitted, the background will be plain white. * @param color The color of the graph. */ declare function getStrainChart(calculator: DifficultyCalculator | DifficultyCalculator$1, beatmapsetID?: number, color?: string): Promise<Buffer | null>; export { getStrainChart as default };