Abstractions for creating confetti using canvas