Skip to content

About

Fractal Canopy implementation built with C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

C Fractal Canopy

A recursive fractal tree drawn with raylib in C.

Starting from a single trunk at the bottom of the window, each branch splits into two children rotated ±25° from their parent, each 75% of the parent's length and thickness. The recursion stops once a branch is shorter than one pixel, which produces the dense "canopy" at the top.

Renders in an 800×600 window.

Requirements

  • A C compiler (clang on macOS, gcc on Linux)
  • make
  • raylib

Install raylib:

brew install raylib
sudo apt install libraylib-dev

Running

make run

Or build and run as separate steps:

make
./canopy

Remove the binary:

make clean

If raylib was built from source instead of installed through a package manager, point the build at it:

make RAYLIB_PATH=/path/to/raylib

About

Fractal Canopy implementation built with C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages