p-e-w / ternimal

Simulate a lifeform in the terminal
GNU General Public License v3.0
1.07k stars 31 forks source link

Feature: Two-dimensional, animated gradient #16

Open p-e-w opened 6 years ago

p-e-w commented 6 years ago

The idea is to extend the current gradient syntax of

DISTANCE:COLOR[,...]

to

X1;Y1;X2;Y2[;...]:COLOR[,...]

Where the x(n)/y(n) coordinates are locations in a 1x1 square whose coloring is determined using a combination of a Delaunay mesh and Barycentric interpolation.

The program then cyclically animates the movement of each point to the next location x(n+1)/y(n+1) every tick seconds (new parameter).

This idea would dramatically enhance the texturing and animation capabilities of Ternimal.