Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 845 Bytes

File metadata and controls

52 lines (35 loc) · 845 Bytes

BMP Image Generator

Tiny C library for drawing basic shapes and exporting 24-bit BMP files.

Project structure

  • lib.h, lib.c: reusable bitmap library (kept at project root)
  • main.c: minimal example of how to use the library
  • art/: standalone algorithmic/art demos
    • Koch.c
    • Sierpinski.c
    • Phyllotaxis.c

Quick start

Build and run the minimal example:

cc main.c lib.c -o main
./main

This writes output.bmp.

Run artwork demos

Koch snowflake:

cc art/Koch.c lib.c -lm -o koch
./koch

Sierpinski triangle:

cc art/Sierpinski.c lib.c -o sierpinski
./sierpinski

Phyllotaxis spiral:

cc art/Phyllotaxis.c lib.c -o phyllotaxis
./phyllotaxis