Crate funscript

Source

Structs§

FSPoint
A .funscript action point x = pos y = at
FScript
a serializable and deserializable .funscript file
OFSMetadata
extra metadata, specifically for OpenFunscripter (OFS)
SimulatorPresets
properties about a pressure simulator that can be used to input points in a .funscript

Enums§

FunscriptError
Error types for .funscript file operations

Functions§

apply_rdp
runs the ramer-douglas-peucker algorithm on the script applies a smooth point reduction to the script by the given epsilon epsilon > ~10.0 will result in nothing but peaks and valleys
get_pt
adds an action point
load_funscript
loads a .funscript file using the provided path
print_script
print the .funscript structure
save_funscript
saves a .funscript file using the provided path