/PPM-and-PNG-graphics-C

PPM and PNG graphics in C created from scratch with no SDL, OpenGL and other graphics libraries, only C standard libraries, and only made by me libraries.

Primary LanguageCGNU General Public License v3.0GPL-3.0

PPM-and-PNG-graphics-C

PPM and PNG graphics in C created from scratch with no SDL, OpenGL and other graphics libraries, only C standard libraries, and only made by me libraries.

** IMPORTANT NOTE: (0, 0) co-ordinate is the left bottom pixel!

Currently available functions:

  • drawing lines using Bresenham algorithm
  • drawing squares, rectangles, circles filled circles
  • drawing triangles
  • drawing filled triangles
  • drawing polygons
  • rotating triangles around the axises and around other points
  • rotating polygons around the axises and around other points
  • drawing lines using DDA algorithm
  • horizontal and vertical shifts of figures
  • Barnsley fern algorithm + rescaling function
  • recursive cubical fractal tree
  • Manhattan distance function
  • Vonoroi diagram