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

Apply lerp function p5.js #1

Open
Arturo777 opened this issue Jan 12, 2020 · 0 comments
Open

Apply lerp function p5.js #1

Arturo777 opened this issue Jan 12, 2020 · 0 comments

Comments

@Arturo777
Copy link
Owner

what I have already is three withe ellipses on the canvas and one black ellipse going from one base to another.

but what I want to add is the lerp function to make easy the movement of the black ball by the lerp function.

the problem that I have is that I`m using set interval, to change the values of the black ball. to the next base.

Is there any solution to make little percentage movements between each frame that make the counter? o it is necessary the counter to being also counting the little movements between each base?

I hope someone want to help me and thanks.

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

1 participant