//
// $('#dec').attr('x2', x2(dec,100,300,30)).attr('y2', y2(dec,100,300,30));
}
$(function() {
var c=document.getElementById("myCanvas"); // obtiene CANVAS
if (c.getContext) { // CANVAS soportado?
var ctx = c.getContext("2d"); // define contexto 2D
mostrar_hora(ctx);
setInterval(function(){mostrar_hora(ctx);}, 1000);
animarDecimal(ctx);
setInterval(function(){animarDecimal(ctx);}, 10);
}
})
Reloj CANVAS