p-e-w / ternimal

Simulate a lifeform in the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Two-dimensional, animated gradient

p-e-w opened this issue · comments

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.