[HN Gopher] My Fourier Epicycles
       ___________________________________________________________________
        
       My Fourier Epicycles
        
       Author : signa11
       Score  : 51 points
       Date   : 2020-08-23 09:29 UTC (13 hours ago)
        
 (HTM) web link (www.myfourierepicycles.com)
 (TXT) w3m dump (www.myfourierepicycles.com)
        
       | loa_in_ wrote:
       | Why does it use two sets of vectors?
       | 
       | One sum of vectors is enough to trace any continuous line.
        
         | falseprofit wrote:
         | Yeah, this is pretty annoying. Starting with a function from
         | the circle to the complex plane, the Fourier series decomposes
         | it into a sum of exponentials, which are circular motions about
         | 0. This version with x and y coordinates separated
         | overcomplicates and confuses. And with a four-dimensional
         | output, there are 2 unused dimensions whose values are
         | arbitrary.
        
         | hinkley wrote:
         | Perhaps so the animations are outside of the drawing area?
        
       | [deleted]
        
       | gus_massa wrote:
       | The second pass makes the line darker. Is it on purpose or just a
       | numeric error?
        
         | ReactiveJelly wrote:
         | It may also be a result of the canvas drawing anti-aliased
         | lines. Since an anti-aliased line contains some partially
         | transparent pixels, drawing exactly the same line a second time
         | will darken those pixels.
        
       | encypruon wrote:
       | Shameless plug: A friend of mine and I made a game[1] for a jam
       | that works the other way around. The goal is to manually fiddle
       | with the coefficients to recreate a given shape.
       | 
       | It gives an easy way to play with the coefficients and hopefully
       | allows the player to gain some intuitions. For example how some
       | combinations of frequencies lead to rotational symmetry and why
       | negative frequencies are necessary.
       | 
       | It's not very polished, though. I made a mistake while writing
       | the algorithm that checks whether the shape is matching. It
       | causes some false negatives in certain situations. There might
       | also be some issues with dragging the controls on Mac OS.
       | 
       | [1] https://coldiv.itch.io/fouriershaper
        
       | ndr wrote:
       | This is fun but I think it's a bit buggy.
       | 
       | Trying to draw lines parallel and close to more than one border
       | generates a lot of nonsense. Try with a square almost as big as
       | the canvas.
        
       | bargle0 wrote:
       | It would be cool to have a slider or something to hide cycles,
       | starting with the highest frequency. Basically, a way to
       | visualize lossy compression.
        
       ___________________________________________________________________
       (page generated 2020-08-23 23:00 UTC)