Skip to content

seancribbs/splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splines

An implementation of popular parametric splines for use in graphics, simulations, and games.

Package Version Hex Docs

gleam add splines@1
import splines/bezier
import vec/vec2.{type Vec2}

pub fn main() -> Nil {
  let quadratic_curve = bezier.new_2d([
    Vec2(0.0, 1.0),
    Vec2(0.0, 0.0),
    Vec2(1.0, 0.0),
  ])
  bezier.sample(quadratic_curve, 0.5) |> echo
}

Further documentation can be found at https://hexdocs.pm/splines.

About

Implementation of splines in Gleam

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages