/    Sign up×
Community /Pin to ProfileBookmark

canvas – change animation flow speed

I have created a falling particles animation using java script & canvas. currently the particles are falling from top right corner to bottom left corner (like particle emitter or fountain) and working as expected. problem is with speed, animation speed is too high, I want make the animation flow little slow & smooth.
Running code is on this fiddle “https://jsfiddle.net/lakhan_k2951/aodL8s12/3/

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAJun 04.2020 — Have you defined time?
Copy linkTweet thisAlerts:
@lakhan_k2951authorJun 04.2020 — where should I apply time?
Copy linkTweet thisAlerts:
@lopomajiJun 05.2020 — where should I apply time?

Copy linkTweet thisAlerts:
@cootheadJun 05.2020 — Hi there lakhan_k2951,

experiment by changing the value **7** here...

``<i>
</i>flake.speed = (Math.random() * 7) + 0.5;<i>
</i>
``


...to something smaller. :)

_coothead_
Copy linkTweet thisAlerts:
@lopomajiJun 07.2020 — where should I apply time?

[url=https://1921681001.id/][color=#000000]192.168.100.1[/color][/url] [url=https://19216811.cam/][color=#000000]192.168.1.1[/color][/url]
×

Success!

Help @lakhan_k2951 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...