Skip to content

LxAlessandroLx/spiral-of-theodorus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiral of Theodorus

A simple C program to draw Spiral of Theodorus (also known as root spiral) written using Raylib for rendering

Commands

  • right arrow to increase the number of triangles
  • left arrow to decrease the number of triangles
  • scroll to zoom in/out
  • ESC to exit program

Installation

Install Raylib (see https://github.com/raysan5/raylib)

Clone the repository

git clone https://github.com/LxAlessandroLx/theodorus-spiral.git

Move into the directory

cd theodorus-spiral

Build the project

make

And execute it

make run

Usage

Usage: 
 TheodorusSpiral [options]

Options:
 -t, --triangles           number of triangles of the spiral (default = 50)
 -a, --antialiasing        activate antialiasing: 1 to disable, 2 to enable (default = 1)
 -z, --zoom                zoom scale (default = 60)

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

About

A simple C program to draw a Spiral of Theodorus

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published