tween_balls: Tween balls in a Plinko board

View source: R/tween_balls.R

tween_ballsR Documentation

Tween balls in a Plinko board

Description

Adds tweening frames to the animation of ball positions in a Plinko board.

Usage

tween_balls(board, frame_mult, ease = "bounce-out")

Arguments

board

A plinko_board() object

frame_mult

The number of frames to add per existing frame in the animation. 4 tends to be a good number.

ease

The easing function to use. See tweenr::display_ease() for examples.

Value

A modifed plinko_board() with tweened frames added.


mjskay/plinko documentation built on March 9, 2024, 5:55 a.m.