feat: make gif (#8)

* feat: make gif

* fix readme image

* wider gif

* rotated sometimes
This commit is contained in:
2025-06-05 12:03:00 +02:00
committed by GitHub
parent 1df9e4a468
commit 533960f46f
3 changed files with 12 additions and 1 deletions
+9
View File
@@ -33,3 +33,12 @@ release: clean build time
git commit -m "$(TARGET) v$$VERSION"; \
git tag v$$VERSION -m "$(TARGET) v$$VERSION"
@echo updated ./src/const.h and tagged version
.PHONY: gif
gif: build
mkdir -p tmp
for i in {1..50}; do \
./build/margen -w=1920 -h=720 --seed=$$i$$i -o=tmp/image$$i.bmp ; \
done
ffmpeg -y -f image2 -framerate 1 -i tmp/image%d.bmp -vf scale=960x360 images/sample.gif
rm -rf tmp
+3 -1
View File
@@ -2,7 +2,9 @@
> generate a marble-like pattern bitmap image, blazing fast.
![](./images/sample.gif)
<p align="center">
<img width="960" height="360" src="./images/sample.gif">
</p>
Written in pure C without librairies.
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 MiB

After

Width:  |  Height:  |  Size: 7.6 MiB