I almost succeeded in making a tline-based tunnel effect in a tweetcart.
Two limitations : poor angle/side management and no perspective scaling.
Most sites explaining the effect are based on screen-space LUTs. pset-ing 128*128 times being very slow,
I got the idea to use tline to draw on the whole screen by considering that function as the converter between normal and polar coordinates.
To get the "normal coordinates" version, try replacing the for calls to w with
I accidentally made the tunnel circular instead of square, can't help explaining this part, sorry.
[Please log in to post a comment]