Live data from Hacker News

Show HN: I made a WebGL-based app that traces images using circles

phqb.github.io

21–25 of 25 posts

Re: Show HN: I made a WebGL-based app that traces images using circles

#21

A complex number contains two components: a real number and a complex part which is a coefficient multiplied by sqrt(-1). Quaternions have four components [0]. Has anyone discovered a kind of number that contains three components? [0] https://en.wikipedia.org/wiki/Quaternion

There is no reason why you'd have to restrict yourself to just three components. Data-science regularly uses "numbers" with more than 1000 components.

Re: Show HN: I made a WebGL-based app that traces images using circles

#23
Here's my implementation, also inspired by these videos

It was made in 1kb for the JS1K demo competition: https://js1k.com/2018-coins/demo/3124

Detailed source code: https://github.com/xem/epicycles/blob/gh-pages/index.html

Controls:

- Arrow keys: up / down to change the number of gears, left to toggle intermediate paths, right to clear the scene.

- Mouse: click to add points to the path

Re: Show HN: I made a WebGL-based app that traces images using circles

#25

I fed it a picture of St Javelina of Ukraine, and the output was amazing. Is there any way to save/load the Fourier coefficients?

I added JSON import & export. Btw you can get a sharable link. But the details of the drawing will reduce because of URL length limitation.
Post reply on HN