general/clocks/src/clock.js
/**
     * Paints the hour hand in the clock display.
     * Required by the drawClock function.
     * Scaled to a 200px diameter clock rotated to origin of 12o'clock.
     * @private
     */
Paints the hour hand in the clock display.
Required by the drawClock function.
Scaled to a 200px diameter clock rotated to origin of 12o'clock.
@private
Paints the hour hand in the clock display . Required by the drawClock function . Scaled to a 200px diameter clock rotated to origin of 12o ' clock . @private
function drawHourHand() {
        var begin = -22,
            end = 55,
            ahr = now.ahours(),
            min = now.minutes(),
            sec = now.seconds();
        ctx.save();
        ctx.lineWidth = 7;
        ctx.strokeStyle = "black";
        ctx.lineCap = "round";
        ctx.rotate(ahr*(Math.PI/6) + (Math.PI/360)*min + (Math.PI/21600)*sec);
        ctx.beginPath();
        ctx.moveTo(begin, 0);
        ctx.lineTo(end, 0);
        ctx.stroke();
        ctx.restore();
    }
function drawHourHand ( ) { var begin = - 22 , end = 55 , ahr = now . ahours ( ) , min = now . minutes ( ) , sec = now . seconds ( ) ; ctx . save ( ) ; ctx . lineWidth = 7 ; ctx . strokeStyle = "black" ; ctx . lineCap = "round" ; ctx . rotate ( ahr * ( Math . PI / 6 ) + ( Math . PI / 360 ) * min + ( Math . PI / 21600 ) * sec ) ; ctx . beginPath ( ) ; ctx . moveTo ( begin , 0 ) ; ctx . lineTo ( end , 0 ) ; ctx . stroke ( ) ; ctx . restore ( ) ; }
Paints the hour hand in the clock display.
Paints the hour hand in the clock display .
// Drawing constraints for the hour hand
 // Extend the hour hand beyond the center
 // Analog hour
 // Don't touch any previous settings on the stack
 // Style the hour Hand
 // Rotate based on the current fractions of time
 // Restore previous settings on the canvas stack
