Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.7 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.7 KB

bezieR

The goal of bezieR is to It helps visually analyze Bezier curves and animate their construct function of f(t). It was inspired by Wikipedia visualization

bezieR is an R package designed for Bezier curves analysis.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("Hussain-Alsalman/bezieR")

Example

This is a basic example which shows visualize the relationship between the control points Pnof Bezier curve a common problem:

library("bezieR")
## basic example code
analyze_bezier(cp_x =c(10,20,30), cp_y = c(10,50,10))

You can get an intuition about the control points and Bezier curves relationship by animating the path of the curve

animate_bezier(cp_x =c(10,20,30), cp_y = c(10,50,10))

Additional Information

You can read my detailed blog post about Bezier Curves. It goes a little bit beneath the surface and discusses some mathematical intuitions behind these curves

Resource