Skip to content
modkitv0.2

CPU-side image API (image.h) + color/rand utilities

← All examples42_image

Builds several images on the CPU (checker, vertical gradient, Perlin noise, and a procedurally edited one), uploads them to GPU textures once, and draws them as 2D sprites. Exercises mk_image_* + mk_color_* + mk_rng_*.

CPU-side image API (image.h) + color/rand utilities

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
42
Tags
image2dvectortexture
Source
examples/42_image/main.c

Build and run

./scripts/build-linux.sh release --target=42_image --run