behavior

package
v0.0.0-...-ad9a3c7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CubicBezierCurve

func CubicBezierCurve(p0, p1, p2, p3 point, t float64) (x, y int)

CubicBezierCurve has two anchor points P0 and P3, and two control points P1 and P2, and t represents time in [0,1]

func RandomNumber

func RandomNumber(min, max int) int

RandomNumber generates a non-negetive int between [min, max)

func RandomSleep

func RandomSleep(min, max int)

RandomSleep pauses execution for a random amount of milliseconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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