ekinakkaya / easyppm

Small C library for creating image files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

easyppm.c

Small .ppm library for creating image files. Provides basic functions like painting pixels or chunks. ffmpeg can be used to convert ppm files to png files.

examples

Note: ./ppmtopng.sh script can be used to convert and copy all .ppm images to ./images directory as .png files.

# avatar creator example
gcc examples/avatar-creator.c easyppm.c && ./a.out

avatar avatar


# text rendering example
gcc examples/text-rendering.c easyppm.c && ./a.out

avatar

# random noise example
gcc examples/example.c easyppm.c && ./a.out

[image]

compile and run

with gcc:

# looped memory test for leaks
gcc example/memtest.c easyppm.c && ./a.out

About

Small C library for creating image files.


Languages

Language:C 99.1%Language:Shell 0.9%