dimanche 14 janvier 2018

Creating a random color inside object HowlerJS

So right now I am trying to make a patatap clone. I want to make it to where everytime I press a key the a circle is scaled down by 10% in a random position on the screen with a random color. So far I got everything but the random color part down. So how to change this to a randomly generated color everytime?

var keyData = {
  q: {
    sound: new Howl({
      src: ['sounds/bubbles.mp3']
    }),
    color: '#1abc9c'
  }
}



Aucun commentaire:

Enregistrer un commentaire