forsythe / superformula

simple animation that sweeps through different values for parameters of superformula

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary

Simple animation that sweeps through different values for parameters of a superformula. Found this article after reading about the programming behind No Man's Sky!

Will randomly sweep through values of a, b, m, n1, n2, n3 to generate neat shapes. superformula

Demo

superformula demo

Notes

ZOOMFACTOR can be used to scale r(φ) up or down
DELAY_TIME_MS can be adjusted to speed up or slow down the animation

Requires SDL2 for graphics. I included all the necessary files along with the .exe to avoid the hassle of installing SDL.

About

simple animation that sweeps through different values for parameters of superformula


Languages

Language:C++ 96.6%Language:C 3.4%