A sound and animation on key press project built on Paperscript and Howler.js
The purpose of this project was to serve as an introduction to working with animations and sounds in javascript. For the animations, a library called Paper.js is utilized which is an open source vector graphics scripting framework which runs ontop of the HTML5 Canvas. This framework allows the animation of elements within a rendered space declared as a Canvas. Howler.js is an audio library which makes working with audio files easy by creating Howls for the audio files. Both of these libraries work seamlessly together to produce a sound and animation for different key presses.
This app is hosted via Heroku at https://oarnosa-patatap-clone.herokuapp.com
- Paper.js - v0.12.3
- Howler.js - v2.1.2
- jQuery - v3.4.1
Example of the Paper.js script which expands on the HTML5 canvas element and creates an area to allow the animation of objects:
<script type="text/paperscript" canvas="myCanvas"></script>
Example of a Howler.js Howl:
var sound = new Howl({
src: ["sound.mp3"]
});
sound.play();
Project is: in progress, as I would like to add more dynamic and varied effects to the animations.
This project was inspired by the original Patatap which I highly recommend you check out!