4 ms·
How did you simulate the heartbeat, I am curious to look at that code or that method. Awesome job!
by mendeza 9y ago
How did you simulate the heartbeat, I am curious to look at that code or that method. Awesome job!
- jaredpike 9y agoThanks! It's a simple scaling animation loop, just took a little trial and error to get the timing right. You can see the code for it here - https://github.com/ronik-design/love.ronikdesign.com/blob/468b8f4fd04a3ea3a5ef428639f97952adeaebf2/src/webgl/scene/Heart.js#L82-L89 https://github.com/ronik-design/love.ronikdesign.com/blob/46...