funscript

package
v0.0.0-...-ee8be3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package funscript provides tools the generate and manipulate funscripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(f []funscript.Action) []funscript.Action

Cleanup returns a copy of a list of actions with all redundant actions removed.

func Generate

func Generate(p []byte, opts GeneratetOpts) funscript.Script

Generate a funscript from raw data in percent (0-100).

Types

type GeneratetOpts

type GeneratetOpts struct {
	// SampleRate in Hz
	SampleRate float64
	// Tolerance that is used to round values during comparisons.
	Tolerance byte
	// MinInterval is the minimum amount of time in miliseconds between actions.
	MinInterval int
}

GeneratetOpts bundles the script are used during the conversion of raw data into a funscript.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL