Someone taught me how to approx distance between two points without sqrt.
max(abs(x),abs(y)) + min(abs(x),abs(y))/2
https://git.sr.ht/~rabbits/decadv/tree/main/item/tcc/day5.tal#L50
Someone taught me how to approx distance between two points without sqrt. max(abs(x),abs(y)) + min(abs(x),abs(y))/2 https://git.sr.ht/~rabbits/decadv/tree/main/item/tcc/day5.tal#L50 12 comments
@phoebos my second point is the screen center https://git.sr.ht/~rabbits/decadv/tree/main/item/tcc/day5.tal#L35 Thanks so much to the @lovebyteparty community for the help with this #lovebytetcc. I learnt how to do transition between colors today, went back and revisited yesterday's demo and added a little dither effect that softens the edges. @neauoire Everything about this is just super cool, the shape, the patterns, the fact that it's sqrt-less... and the mix with the music is just ๐ฉโ๐ณ๐! @neauoire If you scale by 15/16 (which is very simple with integers!), you get an average better result: |
@neauoire ๐๐