项目作者: aschinchon

项目描述 :
An experiment in R to create pins in movement
高级语言: R
项目地址: git://github.com/aschinchon/spinning-pins.git
创建时间: 2018-12-18T21:16:56Z
项目社区:https://github.com/aschinchon/spinning-pins

开源协议:MIT License

下载


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):

  1. install.packages("tidyverse")
  2. install.packages("data.table")
  3. 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: