An experiment in R to create pins in movement
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
spinning_pins.R

README.md

Spinning Pins

An R experiment to create animated patterns made by pins in movement.

An example:

Getting Started

Prerequisites

You will need to install the following packages (if you don't have them already):

install.packages("tidyverse")
install.packages("data.table")
install.packages("gganimate")

Parameters

Animations depend on three main parameters:

  • n_points: Dimension of the grid (n_points x n_points)
  • closeness: Separation of consecutive pins between columns (in radians).
  • speed: Incremental angle to add in each frame to all pins
  • v_angles: Initial arrange of pins

More info

A complete explanation of the experiment can be found at fronkonstin

Animation is obtained thanks to gganimate package, by Thomas Lin Pedersen,available here.

Author:

Antonio Sánchez Chinchón: