Smolpix: very tiny image generation toy

SMOLPIX


https://codeberg.org/tgirod/smolpix

Smolpix is a toy application to generate animations with a very simple stack language - think shadertoy meets forth. The program generates an animation of 256 frames of size 256x256. each pixel is computed based on three parameters (x,y,t) and their combinations through various arithmetic operations and functions. The stack language manipulates onl u8 and uses modulo operators, so using multiplication usually gives wild results!

This project is my playground to learn more about SIMD and performance in general, and to have an excuse to play with my computer. :slight_smile:

There are probably many things I could improve in terms of usability (making the program not explode when your script is invalid) or performance (I could generate the frames in parallel).

The code is pretty much its own documentation right now, but I think it is pretty straightforward. Feel free to give me feedbacks!

Supported Zig versions

version 0.16

PS: I’m so happy there is a “handmade” tag !

5 Likes