Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate such kind of Fourier style GIF? #19

Open
wqw547243068 opened this issue Jul 9, 2019 · 3 comments
Open

How to generate such kind of Fourier style GIF? #19

wqw547243068 opened this issue Jul 9, 2019 · 3 comments

Comments

@wqw547243068
Copy link

Question

  • I am deeply attracted by your profile GIF,like the one at the bottom of your post
  • Wondering how do you implement it?Could you share some ideas,or online tool to generate such sort of things
@Jezzamonn
Copy link
Owner

If you're talking about this animation:

Screen Shot 2019-07-09 at 21 28 56

The way I generated it was actually using the page itself! I draw the image with the part that says "Draw Here", although I changed the code so that it printed out the list of points into the browser console, which I saved to here: https://github.com/Jezzamonn/fourier/blob/master/js/points/me-points.js

It's actually not saved to a gif but the page computes Fourier transform on those points, and draws the animation through code. Here is where it passes in those to a new object.

controller.setPath(mePoints, 256, 0.1);

If you wanted to make something similar, probably the easiest way would be to just use the page, and draw the image there and then do a screen recording of the animation

Let me know if you have any other questions!

@wqw547243068
Copy link
Author

wqw547243068 commented Aug 2, 2019

Further questions:

  • How did you generate those data points, stored in mePoints ? That's a heavy work

@Jezzamonn
Copy link
Owner

Ah, sorry just saw the follow up question!

So that's what I was referring to when I said I made it using the page itself. I drew on the widget that says "draw here", and then got the page to output the list of points to the browser's developer console. The logic is still there actually:

console.log(this.path);

So if you draw something on the page and then press 'p' it'll display the list of points.

If you need to know how to open the developer console, search for "open developer console [name of browser you're using]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants