turtle_drunk: Drunken Turtle (Turtle Graphics)

View source: R/turtle_drunk.R

turtle_drunkR Documentation

Drunken Turtle (Turtle Graphics)

Description

A turtle takes steps of a fixed length, but turns at a random angle after each step.

Usage

turtle_drunk(side, step)

Arguments

side

side-lengths of the containing square

step

length of one turtle step

Value

side effects

Author(s)

Homer White homerhanumat@gmail.com

Examples

## turtle_drunk(side = 100, step = 10)

homerhanumat/bcscr documentation built on Jan. 14, 2023, 4 a.m.