luxe: plot
import "luxe: plot" for PlotA service API to plot values for games + debugging. Can plot values from anywhere as a counter or as a running history. Counter plots add values to their total and add the total to the history at the end of the frame.
Plot.define(..)
Section titled “Plot.define(..)”Plot.define(id : String, type : PlotType) : unknownDefine a new plot by id, with the given
type. The max history defaults to 60 values if not specified.
Plot.define(…)
Section titled “Plot.define(…)”Plot.define(id : String, type : PlotType, max_history : Num) : unknownDefine a new plot by id, with the given
typeandmax_history
Plot.update(..)
Section titled “Plot.update(..)”Plot.update(id : String, value : Num) : unknownUpdate a given plot by id, with the given
value. ForPlotType.normalthis will add the value to the history. ForPlotType.counterthis will add the value to the total so far this frame.
Plot.list(.)
Section titled “Plot.list(.)”Plot.list() : unknownGet a list of plots defined, as string id (e.g Strings.get(id) is needed)
Plot.history(.)
Section titled “Plot.history(.)”Plot.history(id : String) : ListGet the history for a given plot, as a list of values
Plot.latest(.)
Section titled “Plot.latest(.)”Plot.latest(id : String) : NumGet the latest value for a given plot
Plot.average(.)
Section titled “Plot.average(.)”Plot.average(id : String) : NumGet the average value for a given plot, averaging out the history