mirror of
https://github.com/charmbracelet/harmonica.git
synced 2026-07-19 10:09:33 -06:00
Fix typos in the README and in comments
This commit is contained in:
parent
1de2016a3a
commit
3c94e02dc9
@ -11,7 +11,7 @@ A simple, efficient spring animation library for smooth, natural motion.
|
||||
|
||||
<img src="https://stuff.charm.sh/harmonica/harmonica-opengl.gif" width="400" alt="Harmonica OpenGL Demo">
|
||||
|
||||
Harmonica is framework agnostic and works well in 2D and 3D contexts.
|
||||
Harmonica is framework-agnostic and works well in 2D and 3D contexts.
|
||||
|
||||
```go
|
||||
import "github.com/charmbracelet/harmonica"
|
||||
|
||||
@ -91,7 +91,7 @@ var epsilon = math.Nextafter(1, 2) - 1
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// // First precomute spring coefficients based on your settings:
|
||||
// // First precompute spring coefficients based on your settings:
|
||||
// var x, xVel, y, yVel float
|
||||
// deltaTime := FPS(60)
|
||||
// s := NewSpring(deltaTime, 5.0, 0.2)
|
||||
@ -105,8 +105,8 @@ type Spring struct {
|
||||
velPosCoef, velVelCoef float64
|
||||
}
|
||||
|
||||
// New initializes a new Spring, computing the parameters needed to simulate
|
||||
// a damped spring over a given period of time.
|
||||
// NewSpring initializes a new Spring, computing the parameters needed to
|
||||
// simulate a damped spring over a given period of time.
|
||||
//
|
||||
// The delta time is the time step to advance; essentially the framerate.
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user