Sixteen segment display using the Html5 canvas