Skip to content

tkuhemiya/BMP-Image-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C library to make bmp images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages