¶
luxe API (2025.1.2)¶
luxe: plot module¶
Plot¶
import "luxe: plot" for Plot
A 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.
- define(id:
String, type:PlotType) - define(id:
String, type:PlotType, max_history:Num) - update(id:
String, value:Num) - list()
- history(id:
String) - latest(id:
String) - average(id:
String)
String, type: PlotType)
¶unknown
Define a new plot by id, with the given
type. The max history defaults to 60 values if not specified.
String, type: PlotType, max_history: Num)
¶unknown
Define a new plot by id, with the given
typeandmax_history
String, value: Num)
¶unknown
Update 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.
unknown
Get a list of plots defined, as string id (e.g Strings.get(id) is needed)
String)
¶List
Get the history for a given plot, as a list of values
String)
¶Num
Get the latest value for a given plot
String)
¶Num
Get the average value for a given plot, averaging out the history