Burn Demos

Burn is a 2D/3D graphics library written in C that "Creatively Burns" pixels onto your screen. It rasterizes images and 3D objects pixel by pixel on the CPU, and avoids the use of Graphics APIs like OpenGL, Vulkan, etc. This website contains various demos of the library, displayed using WebAssembly (WASM).

This library's source code is available here: https://codeberg.org/RedFlameKen/Burn

Triangle

The traditional triangle with interpolated colors, rotating.

Source: src/demos/triangle.c

Circle

A hollow and filled circle

Source: src/demos/circle.c

Stretching Textures

A checkerboard texture stretching dynamically

Source: src/demos/sprite_resize.c

Textured Triangle

A triangle with a checkerboard texture

Source: src/demos/triangle_textured.c

3D Triangles

A 3D rotating cube made up of triangles

Source: src/demos/triangle3d.c

3D Textured Triangles

A 3D rotating cube made up of triangles with an ugly grass block texture

Source: src/demos/triangle3d_textured.c